TensorRT 8.5.3
|
A functionally safe engine for executing inference on a built network. More...
#include <NvInferSafeRuntime.h>
Public Member Functions | |
virtual TRT_DEPRECATED std::int32_t | getNbBindings () const noexcept=0 |
Get the number of binding indices. More... | |
virtual TRT_DEPRECATED std::int32_t | getBindingIndex (AsciiChar const *const name) const noexcept=0 |
Retrieve the binding index for a named tensor. More... | |
virtual TRT_DEPRECATED AsciiChar const * | getBindingName (std::int32_t const bindingIndex) const noexcept=0 |
Retrieve the name corresponding to a binding index. More... | |
virtual TRT_DEPRECATED bool | bindingIsInput (std::int32_t const bindingIndex) const noexcept=0 |
Determine whether a binding is an input binding. More... | |
virtual TRT_DEPRECATED Dims | getBindingDimensions (std::int32_t const bindingIndex) const noexcept=0 |
Get the dimensions of a binding. More... | |
virtual TRT_DEPRECATED DataType | getBindingDataType (std::int32_t const bindingIndex) const noexcept=0 |
Determine the required data type for a buffer from its binding index. More... | |
virtual IExecutionContext * | createExecutionContext () noexcept=0 |
Create an execution context. More... | |
virtual IExecutionContext * | createExecutionContextWithoutDeviceMemory () noexcept=0 |
Create an execution context without any device memory allocated. More... | |
virtual size_t | getDeviceMemorySize () const noexcept=0 |
Return the amount of device memory required by an execution context. More... | |
virtual TRT_DEPRECATED std::int32_t | getBindingBytesPerComponent (std::int32_t const bindingIndex) const noexcept=0 |
Return the number of bytes per component of an element. More... | |
virtual TRT_DEPRECATED std::int32_t | getBindingComponentsPerElement (std::int32_t const bindingIndex) const noexcept=0 |
Return the number of components included in one element. More... | |
virtual TRT_DEPRECATED TensorFormat | getBindingFormat (std::int32_t const bindingIndex) const noexcept=0 |
Return the binding format. More... | |
virtual TRT_DEPRECATED std::int32_t | getBindingVectorizedDim (std::int32_t const bindingIndex) const noexcept=0 |
Return the dimension index that the buffer is vectorized. More... | |
virtual AsciiChar const * | getName () const noexcept=0 |
Returns the name of the network associated with the engine. More... | |
virtual void | setErrorRecorder (IErrorRecorder *const recorder) noexcept=0 |
Set the ErrorRecorder for this interface. More... | |
virtual IErrorRecorder * | getErrorRecorder () const noexcept=0 |
Get the ErrorRecorder assigned to this interface. More... | |
ICudaEngine ()=default | |
virtual | ~ICudaEngine () noexcept=default |
ICudaEngine (ICudaEngine const &)=delete | |
ICudaEngine (ICudaEngine &&)=delete | |
ICudaEngine & | operator= (ICudaEngine const &) &=delete |
ICudaEngine & | operator= (ICudaEngine &&) &=delete |
virtual Dims | getTensorShape (AsciiChar const *tensorName) const noexcept=0 |
Get extent of an input or output tensor. More... | |
virtual DataType | getTensorDataType (AsciiChar const *tensorName) const noexcept=0 |
Determine the required data type for a buffer from its tensor name. More... | |
virtual TensorIOMode | getTensorIOMode (AsciiChar const *tensorName) const noexcept=0 |
Determine whether a tensor is an input or output tensor. More... | |
virtual std::int32_t | getTensorBytesPerComponent (AsciiChar const *tensorName) const noexcept=0 |
Return the number of bytes per component of an element. More... | |
virtual std::int32_t | getTensorComponentsPerElement (AsciiChar const *tensorName) const noexcept=0 |
Return the number of components included in one element. More... | |
virtual TensorFormat | getTensorFormat (AsciiChar const *tensorName) const noexcept=0 |
Return the tensor format. More... | |
virtual std::int32_t | getTensorVectorizedDim (AsciiChar const *tensorName) const noexcept=0 |
Return the dimension index along which buffer is vectorized. More... | |
virtual std::int32_t | getNbIOTensors () const noexcept=0 |
Return the number of input and output tensors for the network from which the engine was built. More... | |
virtual AsciiChar const * | getIOTensorName (std::int32_t const index) const noexcept=0 |
Return the name of an IO tensor. More... | |
A functionally safe engine for executing inference on a built network.
|
default |
|
virtualdefaultnoexcept |
|
delete |
|
delete |
|
pure virtualnoexcept |
Determine whether a binding is an input binding.
bindingIndex | The binding index. |
Usage considerations
|
pure virtualnoexcept |
Create an execution context.
Usage considerations
|
pure virtualnoexcept |
Create an execution context without any device memory allocated.
The memory for execution of this device context must be supplied by the application.
Usage considerations
|
pure virtualnoexcept |
Return the number of bytes per component of an element.
The vector component size is returned if getBindingVectorizedDim() != -1.
bindingIndex | The binding Index. |
Usage considerations
|
pure virtualnoexcept |
Return the number of components included in one element.
The number of elements in the vectors is returned if getBindingVectorizedDim() != -1.
bindingIndex | The binding Index. |
Usage considerations
|
pure virtualnoexcept |
Determine the required data type for a buffer from its binding index.
bindingIndex | The binding index. |
Usage considerations
|
pure virtualnoexcept |
Get the dimensions of a binding.
bindingIndex | The binding index. |
Usage considerations
|
pure virtualnoexcept |
Return the binding format.
bindingIndex | The binding Index. |
Usage considerations
|
pure virtualnoexcept |
Retrieve the binding index for a named tensor.
safe::IExecutionContext::enqueueV2() requires 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.
name | The tensor name. |
Usage considerations
|
pure virtualnoexcept |
Retrieve the name corresponding to a binding index.
This is the reverse mapping to that provided by getBindingIndex().
bindingIndex | The binding index. |
Usage considerations
|
pure virtualnoexcept |
Return the dimension index that the buffer is vectorized.
Specifically -1 is returned if scalars per vector is 1.
bindingIndex | The binding Index. |
Usage considerations
|
pure virtualnoexcept |
Return the amount of device memory required by an execution context.
Usage considerations
|
pure virtualnoexcept |
Get the ErrorRecorder assigned to this interface.
Retrieves the assigned error recorder object for the given class. A nullptr will be returned if an error reporter has not been inherited from the IRuntime, and setErrorReporter() has not been called.
Usage considerations
|
pure virtualnoexcept |
Return the name of an IO tensor.
If the index does not fall between 0 and getNbIOTensors()-1, the function will fail with an error code of ErrorCode::kINVALID_ARGUMENT(3) that is emitted to the registered IErrorRecorder.
index | The value that falls between 0 and getNbIOTensors()-1. |
Usage considerations
|
pure virtualnoexcept |
Returns the name of the network associated with the engine.
The name is set during network creation and is retrieved after building or deserialization.
Usage considerations
|
pure virtualnoexcept |
Get the number of binding indices.
Usage considerations
|
pure virtualnoexcept |
Return the number of input and output tensors for the network from which the engine was built.
Usage considerations
|
pure virtualnoexcept |
Return the number of bytes per component of an element.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Return the number of components included in one element.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Determine the required data type for a buffer from its tensor name.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Return the tensor format.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Determine whether a tensor is an input or output tensor.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Get extent of an input or output tensor.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Return the dimension index along which buffer is vectorized.
Specifically -1 is returned if scalars per vector is 1.
tensorName | The name of an input or output tensor. |
Usage considerations
|
delete |
|
delete |
|
pure virtualnoexcept |
Set the ErrorRecorder for this interface.
Assigns the ErrorRecorder to this interface. The ErrorRecorder will track all errors during execution. This function will call incRefCount of the registered ErrorRecorder at least once. Setting recorder to nullptr unregisters the recorder with the interface, resulting in a call to decRefCount if a recorder has been registered.
recorder | The error recorder to register with this interface. |
Usage considerations
Copyright © 2024 NVIDIA Corporation
Privacy Policy |
Manage My Privacy |
Do Not Sell or Share My Data |
Terms of Service |
Accessibility |
Corporate Policies |
Product Security |
Contact