Skip to content

Commit

Permalink
Merge pull request #3007 from philkr/neg_lr_mult
Browse files Browse the repository at this point in the history
Compute backward for negative lr_mult
  • Loading branch information
jeffdonahue committed Sep 1, 2015
2 parents d362894 + a675172 commit 2d55e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caffe/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void Net<Dtype>::Init(const NetParameter& in_param) {
for (int param_id = 0; param_id < num_param_blobs; ++param_id) {
const ParamSpec* param_spec = (param_id < param_size) ?
&layer_param.param(param_id) : &default_param_spec;
const bool param_need_backward = param_spec->lr_mult() > 0;
const bool param_need_backward = param_spec->lr_mult() != 0;
need_backward |= param_need_backward;
layers_[layer_id]->set_param_propagate_down(param_id,
param_need_backward);
Expand Down

0 comments on commit 2d55e31

Please sign in to comment.