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

Method DebugString

tensorflow/core/util/tensor_slice_reader.cc:305–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305const string TensorSliceReader::DebugString() const {
306 string shape_str;
307 if (status().ok()) {
308 for (auto e : Tensors()) {
309 strings::StrAppend(&shape_str, e.first, " (",
310 EnumName_DataType(e.second->type()), ") ",
311 e.second->shape().DebugString());
312 // Indicates if a tensor has more than 1 slice (i.e., it's partitioned).
313 const int num_slices = e.second->Slices().size();
314 if (num_slices > 1) {
315 strings::StrAppend(&shape_str, ", ", num_slices, " slices");
316 }
317 strings::StrAppend(&shape_str, "\n");
318 }
319 }
320 return shape_str;
321}
322
323} // namespace checkpoint
324

Callers 15

FastParseSequenceExampleFunction · 0.45
BinaryAddTensorsFunction · 0.45
FeatureDenseCopyFunction · 0.45
TestCorrectnessFunction · 0.45
TESTFunction · 0.45
SimpleFloatHelperFunction · 0.45
SimpleIntXHelperFunction · 0.45
TESTFunction · 0.45
BM_RegisterOneByOneFunction · 0.45
CopySliceDataMethod · 0.45

Calls 7

statusStruct · 0.85
typeMethod · 0.65
TensorsClass · 0.50
StrAppendFunction · 0.50
okMethod · 0.45
shapeMethod · 0.45
sizeMethod · 0.45

Tested by 10

TestCorrectnessFunction · 0.36
TESTFunction · 0.36
SimpleFloatHelperFunction · 0.36
SimpleIntXHelperFunction · 0.36
TESTFunction · 0.36
BM_RegisterOneByOneFunction · 0.36
GetDataMethod · 0.36
CheckEntriesMethod · 0.36
TESTFunction · 0.36