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

Function ReadProtoFile

tensorflow/compiler/aot/tfcompile_main.cc:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 "\n";
57
58Status ReadProtoFile(const string& fname, protobuf::Message* proto) {
59 if (absl::EndsWith(fname, ".pbtxt")) {
60 return ReadTextProto(Env::Default(), fname, proto);
61 } else {
62 return ReadBinaryProto(Env::Default(), fname, proto);
63 }
64}
65
66Status Main(const MainFlags& flags) {
67 // Process config.

Callers 1

MainFunction · 0.70

Calls 4

EndsWithFunction · 0.85
ReadTextProtoFunction · 0.85
DefaultFunction · 0.85
ReadBinaryProtoFunction · 0.85

Tested by

no test coverage detected