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

Function ParseEntryProto

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:213–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213Status ParseEntryProto(StringPiece key, StringPiece value,
214 protobuf::MessageLite* out) {
215 if (!out->ParseFromArray(value.data(), value.size())) {
216 return errors::DataLoss("Entry for key ", key, " not parseable.");
217 }
218 return Status::OK();
219}
220
221// Serializes the data bytes of the non-string tensor "val". Discards the
222// original content of "bytes_written", and on OK updates it with number of

Callers 4

MergeOneBundleFunction · 0.85
BundleReaderMethod · 0.85
GetBundleEntryProtoMethod · 0.85
ReadCurrentMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected