Skip to content

Commit

Permalink
check all net upgrade conditions
Browse files Browse the repository at this point in the history
check all conditions all the time; V0 -> V1 and V1 -> V2 do not suffice.
  • Loading branch information
shelhamer authored and zouxiaochuan committed Oct 24, 2016
1 parent b6e86ae commit 93446c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/caffe/util/upgrade_proto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
namespace caffe {

bool NetNeedsUpgrade(const NetParameter& net_param) {
return NetNeedsV0ToV1Upgrade(net_param) || NetNeedsV1ToV2Upgrade(net_param);
return NetNeedsV0ToV1Upgrade(net_param) || NetNeedsV1ToV2Upgrade(net_param)
|| NetNeedsDataUpgrade(net_param) || NetNeedsInputUpgrade(net_param);
}

bool UpgradeNetAsNeeded(const string& param_file, NetParameter* param) {
Expand Down

0 comments on commit 93446c2

Please sign in to comment.