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

Method getTensorShape

include/NvInferRuntime.h:1667–1670  ·  view source on GitHub ↗

\brief Get shape of an input or output tensor. \param tensorName The name of an input or output tensor. \return shape of the tensor, with -1 in place of each dynamic runtime dimension, or Dims{-1, {}} if the provided name does not map to an input or output tensor. \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator.

Source from the content-addressed store, hash-verified

1665 //! \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator.
1666 //!
1667 Dims getTensorShape(char const* tensorName) const noexcept
1668 {
1669 return mImpl->getTensorShape(tensorName);
1670 }
1671
1672 //!
1673 //! \brief Determine the required data type for a buffer from its binding index.

Callers 3

getTensorInfoMethod · 0.45
setUpInferenceFunction · 0.45
getTensorShapeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected