liuzechun / Bi-Real-net

Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithm. In ECCV 2018 and IJCV
175 stars 39 forks source link

权重梯度更新 #3

Open zzqiuzz opened 6 years ago

zzqiuzz commented 6 years ago

Hi!我有个疑问?刚进入Backward函数里,这里的 this->blobs_[0]->mutable_gpu_diff()里面的值应该是0?这段代码是对它操作用来给额外的梯度的。 https://github.com/liuzechun/Bi-Real-net/blob/20c8e1de12ac68171aedd2ef5799d18b3858ae6d/Bi-Real-net-caffe/src/caffe/ex_layers/binary_conv_layer.cu#L114 谢谢回复!