| 1163 | } |
| 1164 | |
| 1165 | Status BundleReader::GetTensorInfo( |
| 1166 | StringPiece key, int64* size, |
| 1167 | std::unique_ptr<RandomAccessFile>* file, int64* offset) { |
| 1168 | BundleEntryProto entry; |
| 1169 | TF_RETURN_IF_ERROR(GetBundleEntryProto(key, &entry)); |
| 1170 | TF_RETURN_IF_ERROR(env_->NewRandomAccessFile( |
| 1171 | DataFilename(prefix_, entry.shard_id(), num_shards_), file)); |
| 1172 | *size = entry.size(); |
| 1173 | *offset = entry.offset(); |
| 1174 | return Status::OK(); |
| 1175 | } |
| 1176 | |
| 1177 | Status BundleReader::ReadCurrent(Tensor* val) { |
| 1178 | CHECK(val != nullptr); |
no test coverage detected