1 #ifndef CAFFE_UTIL_UPGRADE_PROTO_H_ 2 #define CAFFE_UTIL_UPGRADE_PROTO_H_ 6 #include "caffe/proto/caffe.pb.h" 11 bool NetNeedsUpgrade(
const NetParameter& net_param);
14 bool UpgradeNetAsNeeded(
const string& param_file, NetParameter* param);
17 void ReadNetParamsFromTextFileOrDie(
const string& param_file,
19 void ReadNetParamsFromBinaryFileOrDie(
const string& param_file,
24 bool NetNeedsV0ToV1Upgrade(
const NetParameter& net_param);
28 bool UpgradeV0Net(
const NetParameter& v0_net_param, NetParameter* net_param);
34 void UpgradeV0PaddingLayers(
const NetParameter& param,
35 NetParameter* param_upgraded_pad);
38 bool UpgradeV0LayerParameter(
const V1LayerParameter& v0_layer_connection,
39 V1LayerParameter* layer_param);
41 V1LayerParameter_LayerType UpgradeV0LayerType(
const string& type);
44 bool NetNeedsDataUpgrade(
const NetParameter& net_param);
48 void UpgradeNetDataTransformation(NetParameter* net_param);
51 bool NetNeedsV1ToV2Upgrade(
const NetParameter& net_param);
55 bool UpgradeV1Net(
const NetParameter& v1_net_param, NetParameter* net_param);
57 bool UpgradeV1LayerParameter(
const V1LayerParameter& v1_layer_param,
58 LayerParameter* layer_param);
60 const char* UpgradeV1LayerType(
const V1LayerParameter_LayerType type);
63 bool NetNeedsInputUpgrade(
const NetParameter& net_param);
66 void UpgradeNetInput(NetParameter* net_param);
69 bool NetNeedsBatchNormUpgrade(
const NetParameter& net_param);
72 void UpgradeNetBatchNorm(NetParameter* net_param);
75 bool SolverNeedsTypeUpgrade(
const SolverParameter& solver_param);
77 bool UpgradeSolverType(SolverParameter* solver_param);
80 bool UpgradeSolverAsNeeded(
const string& param_file, SolverParameter* param);
83 void ReadSolverParamsFromTextFileOrDie(
const string& param_file,
84 SolverParameter* param);
88 #endif // CAFFE_UTIL_UPGRADE_PROTO_H_ A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14