Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Fix bug in RemoveBNScale
Browse files Browse the repository at this point in the history
Signed-off-by: Jin, Ge <[email protected]>
  • Loading branch information
jinge90 committed Jul 4, 2017
1 parent 881163a commit 97cd241
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 @@ -1280,8 +1280,8 @@ void Net<Dtype>::ShareTrainedLayersWith(const Net* other) {
}
//temp_net_param.mutable_compile_net_state()->set_bn_top_rename(other->bn_top_rename_);
complete_net_param.CopyFrom(temp_net_param);
complete_net_param.clear_layer();
if (other->bn_scale_merge_) {
complete_net_param.clear_layer();
RecoverBNScaleMergedNet<Dtype>(&temp_net_param, &complete_net_param);
}
CopyTrainedLayersFrom(complete_net_param);
Expand Down

0 comments on commit 97cd241

Please sign in to comment.