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

Method getTensorComponentsPerElement

include/NvInferRuntime.h:1961–1964  ·  view source on GitHub ↗

\brief Return the number of components included in one element, or -1 if the provided name does not map to an input or output tensor. The number of elements in the vectors is returned if getTensorVectorizedDim() != -1. \param tensorName The name of an input or output tensor. \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator. \warning The

Source from the content-addressed store, hash-verified

1959 //! \see getTensorComponentsPerElement(tensorName, profileIndex)
1960 //!
1961 int32_t getTensorComponentsPerElement(char const* tensorName) const noexcept
1962 {
1963 return mImpl->getTensorComponentsPerElement(tensorName);
1964 }
1965
1966 //!
1967 //! \brief Return the number of components included in one element of given profile, or -1 if the provided name does

Callers 2

getNbErrorsFunction · 0.80
getTensorInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected