| 211 | } |
| 212 | |
| 213 | Status 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 |
no test coverage detected