| 36 | } |
| 37 | |
| 38 | Status 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 | |
| 46 | Status ReadMetaGraphDefFromFile(const string& graph_def_path, |
| 47 | MetaGraphDef* result) { |