MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getTensorFormatDesc

Method getTensorFormatDesc

include/NvInferRuntime.h:2070–2073  ·  view source on GitHub ↗

\brief Return the human readable description of the tensor format, or empty string if the provided name does not map to an input or output tensor. The description includes the order, vectorization, data type, and strides. Examples are shown as follows: Example 1: kCHW + FP32 "Row major linear FP32 format" Example 2: kCHW2 + FP16 "Two wide channel vectorized row major FP16 format" Example 3: kHWC8

Source from the content-addressed store, hash-verified

2068 //! multiple profiles in the engine, use getTensorFormatDesc with profileIndex when there are multiple profiles.
2069 //!
2070 char const* getTensorFormatDesc(char const* tensorName) const noexcept
2071 {
2072 return mImpl->getTensorFormatDesc(tensorName);
2073 }
2074
2075 //!
2076 //! \brief Return the human readable description of the tensor format of given profile, or empty string if the

Callers 1

getNbErrorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected