TensorRT 10.5.0
|
A functionally safe engine for executing inference on a built network. More...
#include <NvInferSafeRuntime.h>
Public Member Functions | |
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 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 *const tensorName) const noexcept=0 |
Get the extent of an input or output tensor. More... | |
virtual DataType | getTensorDataType (AsciiChar const *const tensorName) const noexcept=0 |
Determine the required data type for a buffer from its tensor name. More... | |
virtual TensorIOMode | getTensorIOMode (AsciiChar const *const tensorName) const noexcept=0 |
Determine whether a tensor is an input or output tensor. More... | |
virtual std::int32_t | getTensorBytesPerComponent (AsciiChar const *const tensorName) const noexcept=0 |
Return the size of the tensor data type in bytes for a vectorized tensor. More... | |
virtual std::int32_t | getTensorComponentsPerElement (AsciiChar const *const tensorName) const noexcept=0 |
Return the number of components included in one element for a vectorized tensor. More... | |
virtual TensorFormat | getTensorFormat (AsciiChar const *const tensorName) const noexcept=0 |
Return the tensor format. More... | |
virtual std::int32_t | getTensorVectorizedDim (AsciiChar const *const tensorName) const noexcept=0 |
Return the dimension index along which the 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 |
Create an execution context.
Reasons for failure may include but not be limited to:
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 by calling safe::IExecutionContext::setDeviceMemory().
Reasons for failure may include but not be limited to heap memory exhaustion.
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 IO tensor index. |
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 |
Return the number of input and output tensors for the network from which the engine was built.
Usage considerations
|
pure virtualnoexcept |
Return the size of the tensor data type in bytes for a vectorized tensor.
tensorName | The name of an input or output tensor. |
Usage considerations
|
pure virtualnoexcept |
Return the number of components included in one element for a vectorized tensor.
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 the 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 the buffer is vectorized.
Specifically, -1 is returned if the tensor is scalar.
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. If the recorder is set to nullptr, the error code ErrorCode::kINVALID_ARGUMENT will be emitted if the recorder has been registered.
recorder | The error recorder to register with this interface, or nullptr to deregister the current. error recorder. |
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