| 25 | NetTest() : seed_(1701) {} |
| 26 | |
| 27 | virtual void InitNetFromProtoString(const string& proto) { |
| 28 | NetParameter param; |
| 29 | CHECK(google::protobuf::TextFormat::ParseFromString(proto, ¶m)); |
| 30 | net_.reset(new Net<Dtype>(param)); |
| 31 | } |
| 32 | |
| 33 | virtual void InitNetFromProtoFileWithState(const string& proto, |
| 34 | Phase phase = caffe::TRAIN, const int level = 0, |