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

Method getTensorLocation

include/NvInferRuntime.h:1805–1808  ·  view source on GitHub ↗

\brief Get whether an input or output tensor must be on GPU or CPU. \param tensorName The name of an input or output tensor. \return TensorLocation::kDEVICE if tensorName must be on GPU, or TensorLocation::kHOST if on CPU, or TensorLocation::kDEVICE if the provided name does not map to an input or output tensor. The location is established at build time. E.g. shape tensors inputs are typically

Source from the content-addressed store, hash-verified

1803 //! \warning The string tensorName must be null-terminated, and be at most 4096 bytes including the terminator.
1804 //!
1805 TensorLocation getTensorLocation(char const* tensorName) const noexcept
1806 {
1807 return mImpl->getTensorLocation(tensorName);
1808 }
1809
1810 //!
1811 //! \brief True if tensor is required as input for shape calculations or is output from shape calculations.

Callers 1

setTensorAddressesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected