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

Function DebugString

tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc:308–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308string DebugString(const nvinfer1::DataType trt_dtype) {
309 switch (trt_dtype) {
310 case nvinfer1::DataType::kFLOAT:
311 return "kFLOAT";
312 case nvinfer1::DataType::kHALF:
313 return "kHALF";
314 case nvinfer1::DataType::kINT8:
315 return "kINT8";
316 case nvinfer1::DataType::kINT32:
317 return "kINT32";
318 default:
319 return "Invalid TRT data type";
320 }
321}
322
323string DebugString(const nvinfer1::Dims& dims) {
324 string out = StrCat("nvinfer1::Dims(nbDims=", dims.nbDims, ", d=");

Callers 15

ExpectTrtDimsEqualsArrayFunction · 0.70
TEST_FFunction · 0.70
TrtDataTypeToTfFunction · 0.70
GetTrtBroadcastShapeFunction · 0.70
DebugStringMethod · 0.70
ReorderCKtoKCFunction · 0.70
ReorderRSCKToKCRSFunction · 0.70
ReorderDRSCKToKCDRSFunction · 0.70
TransposeTensorMethod · 0.70
GetWeightRangeMethod · 0.70

Calls 6

trt_tensorMethod · 0.80
StrCatFunction · 0.50
StrAppendFunction · 0.50
getNameMethod · 0.45
getTypeMethod · 0.45
getDimensionsMethod · 0.45

Tested by 2

ExpectTrtDimsEqualsArrayFunction · 0.56
TEST_FFunction · 0.56