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

Method GetTrtDims

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

Source from the content-addressed store, hash-verified

752}
753
754nvinfer1::Dims TRT_TensorOrWeights::GetTrtDims() const {
755 if (is_tensor()) {
756 return tensor()->getDimensions();
757 } else {
758 return weights().shape_;
759 }
760}
761
762string TRT_TensorOrWeights::DebugString() const {
763 string output = "TRT_TensorOrWeights(type=";

Callers 15

TESTFunction · 0.80
TEST_FFunction · 0.80
GetTrtBroadcastShapeFunction · 0.80
VerifyShapesMatchFunction · 0.80
PrepareTensorForShapeMethod · 0.80
ConvertReshapeFunction · 0.80
ConvertExpandDimsFunction · 0.80
ConvertSqueezeFunction · 0.80
ConvertSliceFunction · 0.80
ConvertStridedSliceFunction · 0.80
ConvertBiasAddFunction · 0.80

Calls 2

is_tensorFunction · 0.50
getDimensionsMethod · 0.45

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64