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

Method setTensorAddress

include/NvInferRuntime.h:3245–3248  ·  view source on GitHub ↗

\brief Set memory address for given input or output tensor. \param tensorName The name of an input or output tensor. \param data The pointer (void*) to the data owned by the user. \return True on success, false if error occurred. An address defaults to nullptr. Pass data=nullptr to reset to the default state. Return false if the provided name does not map to an input or output tensor. If an i

Source from the content-addressed store, hash-verified

3243 //! \see setInputTensorAddress() getTensorShape() setOutputAllocator() IOutputAllocator
3244 //!
3245 bool setTensorAddress(char const* tensorName, void* data) noexcept
3246 {
3247 return mImpl->setTensorAddress(tensorName, data);
3248 }
3249
3250 //!
3251 //! \brief Get memory address bound to given input or output tensor, or nullptr if the provided name does not map to

Callers 3

set_tensor_addressFunction · 0.80
setUpInferenceFunction · 0.80
setTensorAddressesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected