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

Commit 97cd241

Browse files
committed
Fix bug in RemoveBNScale
Signed-off-by: Jin, Ge <[email protected]>
1 parent 881163a commit 97cd241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/caffe/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,8 +1280,8 @@ void Net<Dtype>::ShareTrainedLayersWith(const Net* other) {
12801280
}
12811281
//temp_net_param.mutable_compile_net_state()->set_bn_top_rename(other->bn_top_rename_);
12821282
complete_net_param.CopyFrom(temp_net_param);
1283-
complete_net_param.clear_layer();
12841283
if (other->bn_scale_merge_) {
1284+
complete_net_param.clear_layer();
12851285
RecoverBNScaleMergedNet<Dtype>(&temp_net_param, &complete_net_param);
12861286
}
12871287
CopyTrainedLayersFrom(complete_net_param);

0 commit comments

Comments
 (0)