MCPcopy Create free account
hub / github.com/dmlc/parameter_server / writeProtoToFile

Function writeProtoToFile

src/util/file.cc:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275bool writeProtoToFile(
276 const GProto& proto, const std::string& file_name) {
277 std::string proto_string;
278 return proto.AppendToString(&proto_string) &&
279 writeStringToFile(proto_string, file_name);
280}
281
282void writeProtoToFileOrDie(const GProto& proto,
283 const std::string& file_name) {

Callers 1

writeProtoToFileOrDieFunction · 0.85

Calls 1

writeStringToFileFunction · 0.85

Tested by

no test coverage detected