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

Function WriteToFile

tensorflow/core/util/dump_graph.cc:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63#if defined(TENSORFLOW_LITE_PROTOS)
64Status WriteToFile(const string& filepath,
65 const ::tensorflow::protobuf::MessageLite& proto) {
66 string s;
67 if (!SerializeToStringDeterministic(proto, &s)) {
68 return errors::Internal("Failed to serialize proto to string.");
69 }
70 return WriteStringToFile(Env::Default(), filepath, s);
71}
72#else
73Status WriteToFile(const string& filepath,
74 const ::tensorflow::protobuf::Message& proto) {

Callers 1

Calls 5

InternalFunction · 0.85
WriteStringToFileFunction · 0.85
DefaultFunction · 0.85
WriteTextProtoFunction · 0.85

Tested by

no test coverage detected