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

Method DebugString

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:1361–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361string BundleReader::DebugString() {
1362 // Format used below emulates that of TensorSliceReader::DebugString().
1363 string shape_str;
1364 BundleEntryProto entry;
1365 Seek(kHeaderEntryKey);
1366 for (Next(); Valid(); Next()) {
1367 CHECK(entry.ParseFromArray(value().data(), value().size()));
1368 if (entry.slices_size() > 0) continue; // Slice of some partitioned var.
1369
1370 strings::StrAppend(&shape_str, key(), " (",
1371 EnumName_DataType(entry.dtype()), ") ",
1372 TensorShape(entry.shape()).DebugString());
1373 strings::StrAppend(&shape_str, "\n");
1374 }
1375 return shape_str;
1376}
1377
1378FileOutputBuffer::~FileOutputBuffer() { delete file_; }
1379

Callers 6

CreateFunction · 0.45
SparseTensorFunction · 0.45
sparse_tensor.hFile · 0.45
CreatePoolFromSetFunction · 0.45
TESTFunction · 0.45
GetSliceValueMethod · 0.45

Calls 7

NextFunction · 0.85
StrAppendFunction · 0.50
TensorShapeClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45
dtypeMethod · 0.45
shapeMethod · 0.45

Tested by 1

TESTFunction · 0.36