Net<Dtype>::Net(const string& param_file, Phase phase, const Net* root_net = NULL): root_net(root_net){ NetParameter param; readNetParamsFromTextFileOrDie(param_file, ¶m); param.mutable_state()->set_phase(phase); Init(param); }