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

Method getTensorShape

include/NvInferRuntime.h:2926–2929  ·  view source on GitHub ↗

\brief Return the shape of the given input or output. \param tensorName The name of an input or output tensor. Return Dims{-1, {}} if the provided name does not map to an input or output tensor. Otherwise return the shape of the input or output tensor. A dimension in an input tensor will have a -1 wildcard value if all the following are true: setInputShape() has not yet been called for this ten

Source from the content-addressed store, hash-verified

2924 //! \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator.
2925 //!
2926 Dims getTensorShape(char const* tensorName) const noexcept
2927 {
2928 return mImpl->getTensorShape(tensorName);
2929 }
2930
2931 //!
2932 //! \brief Set values of input tensor required by shape calculations.

Callers

nothing calls this directly

Calls 1

getTensorShapeMethod · 0.45

Tested by

no test coverage detected