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

Method getBindingIndex

include/NvInferRuntime.h:1587–1590  ·  view source on GitHub ↗

\brief Retrieve the binding index for a named tensor. IExecutionContext::enqueueV2() and IExecutionContext::executeV2() require an array of buffers. Engine bindings map from tensor names to indices in this array. Binding indices are assigned at engine build time, and take values in the range [0 ... n-1] where n is the total number of inputs and outputs. To get the binding index of the name in a

Source from the content-addressed store, hash-verified

1585 //! \see getNbBindings() getBindingName()
1586 //!
1587 TRT_DEPRECATED int32_t getBindingIndex(char const* name) const noexcept
1588 {
1589 return mImpl->getBindingIndex(name);
1590 }
1591
1592 //!
1593 //! \brief Retrieve the name corresponding to a binding index.

Callers 11

engine_binding_is_inputFunction · 0.80
engine_get_binding_shapeFunction · 0.80
engine_get_binding_dtypeFunction · 0.80
engine_get_locationFunction · 0.80
getNbErrorsFunction · 0.80
sizeMethod · 0.80
getBufferMethod · 0.80
buildMethod · 0.80
inferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected