MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReadGraphDefFromFile

Function ReadGraphDefFromFile

tensorflow/core/grappler/inputs/utils.cc:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Status ReadGraphDefFromFile(const string& graph_def_path, GraphDef* result) {
39 Status status;
40 if (!ReadBinaryProto(Env::Default(), graph_def_path, result).ok()) {
41 return ReadTextProto(Env::Default(), graph_def_path, result);
42 }
43 return status;
44}
45
46Status ReadMetaGraphDefFromFile(const string& graph_def_path,
47 MetaGraphDef* result) {

Callers 3

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 4

ReadBinaryProtoFunction · 0.85
DefaultFunction · 0.85
ReadTextProtoFunction · 0.85
okMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68