MCPcopy Create free account
hub / github.com/BVLC/caffe / InitNetFromProtoString

Method InitNetFromProtoString

src/caffe/test/test_net.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 NetTest() : seed_(1701) {}
26
27 virtual void InitNetFromProtoString(const string& proto) {
28 NetParameter param;
29 CHECK(google::protobuf::TextFormat::ParseFromString(proto, &param));
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,

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected