据我所知,通常情况下自编码器在编码和解码网络中使用绑定权重对吧?
我查看了Caffe的自编码器示例,但我没有看到如何绑定权重。我注意到编码和解码网络共享相同的blob,但如何确保权重被正确更新?
如何在Caffe中实现绑定权重自编码器?
据我所知,通常情况下自编码器在编码和解码网络中使用绑定权重对吧?
我查看了Caffe的自编码器示例,但我没有看到如何绑定权重。我注意到编码和解码网络共享相同的blob,但如何确保权重被正确更新?
如何在Caffe中实现绑定权重自编码器?
layer {
name: "encode1"
type: "InnerProduct"
bottom: "data"
top: "encode1"
param {
name: "encode1_matrix"
lr_mult: 1
decay_mult: 1
}
param {
name: "encode1_bias"
lr_mult: 1
decay_mult: 0
}
inner_product_param {
num_output: 128
weight_filler {
type: "gaussian"
std: 1
sparse: 15
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
name: "decode1"
type: "InnerProduct"
bottom: "encode1"
top: "decode1"
param {
name: "encode1_matrix"
lr_mult: 1
decay_mult: 1
}
param {
name: "decode1_bias"
lr_mult: 1
decay_mult: 0
}
inner_product_param {
num_output: 784
transpose: true
weight_filler {
type: "gaussian"
std: 1
sparse: 15
}
bias_filler {
type: "constant"
value: 0
}
}
}