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

Function ProtobufStringToString

tensorflow/core/platform/protobuf.h:76–76  ·  view source on GitHub ↗

These versions of ProtobufStringToString and SetProtobufString get used by tools/proto_text's generated code. They have the same name as the versions in core/platform/protobuf.h, so the generation code doesn't need to determine if the type is Cord or string at generation time.

Source from the content-addressed store, hash-verified

74// in core/platform/protobuf.h, so the generation code doesn't need to determine
75// if the type is Cord or string at generation time.
76inline string ProtobufStringToString(const Cord& s) { return s.ToString(); }
77inline void SetProtobufStringSwapAllowed(string* src, Cord* dest) {
78 dest->CopyFrom(*src);
79}

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected