Runtime component of the pluginV3 system, this component needs to be safety certified and is required at runtime.
More...
#include <NvInferSafePlugin.h>
Runtime component of the pluginV3 system, this component needs to be safety certified and is required at runtime.
◆ IPluginV3OneSafeRuntime() [1/3]
◆ IPluginV3OneSafeRuntime() [2/3]
◆ ~IPluginV3OneSafeRuntime()
| nvinfer2::safe::IPluginV3OneSafeRuntime::~IPluginV3OneSafeRuntime |
( |
| ) |
|
|
overridedefaultnoexcept |
◆ IPluginV3OneSafeRuntime() [3/3]
| nvinfer2::safe::IPluginV3OneSafeRuntime::IPluginV3OneSafeRuntime |
( |
| ) |
|
|
protecteddefault |
◆ clone()
| virtual IPluginV3 * nvinfer2::safe::IPluginV3OneSafeRuntime::clone |
( |
| ) |
|
|
pure virtualnoexcept |
Clone the plugin object. This copies over internal plugin parameters and returns a new plugin object with these parameters. This call will always be followed by a call to initResource() to complete any initializations that depend on the graph context.
- Precondition
- INIT API
◆ enqueue()
| virtual int32_t nvinfer2::safe::IPluginV3OneSafeRuntime::enqueue |
( |
TensorDescriptor const * |
inputDesc, |
|
|
TensorDescriptor const * |
outputDesc, |
|
|
void const *const * |
inputs, |
|
|
void *const * |
outputs, |
|
|
void * |
workspace, |
|
|
cudaStream_t |
stream |
|
) |
| |
|
pure virtualnoexcept |
Execute the layer.
- Precondition
- RUNTIME API
- Parameters
-
| inputDesc | how to interpret the memory for the input tensors. |
| outputDesc | how to interpret the memory for the output tensors. |
| inputs | The memory for the input tensors. |
| outputs | The memory for the output tensors. |
| workspace | Workspace for execution. |
| stream | The stream in which to execute the kernels. |
- Returns
- 0 for success, else non-zero (which will cause engine termination). The returned code will be reported through the error recorder.
◆ getFieldsToSerialize()
Get the plugin fields which should be serialized.
- Precondition
- INIT API
- Note
- The set of plugin fields returned does not necessarily need to match that advertised through getFieldNames() of the corresponding plugin creator.
-
To serialize arbitrary plugin data, use a PluginField of PluginFieldType::kUNKNOWN, with the length of the PluginField set to the correct number of bytes.
◆ getInterfaceInfo()
| InterfaceInfo nvinfer2::safe::IPluginV3OneSafeRuntime::getInterfaceInfo |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Return version information associated with this interface. Applications must not override this method.
- Precondition
- INIT API
Implements nvinfer1::IVersionedInterface.
◆ initResource()
This function will be called to initialize a plugin object after it is created (before execution phase), either during graph deserialization or when the graph is cloned. The overriding implementations of this function can use the provided context object to access the message recorder, the memory allocator and the runtime error buffer of the graph context to which this plugin belongs.
- Precondition
- INIT API
- Parameters
-
- Returns
- 0 for success, else non-zero (which will cause engine termination). The returned code will be reported through the error recorder.
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator.
◆ setTactic()
| virtual int32_t nvinfer2::safe::IPluginV3OneSafeRuntime::setTactic |
( |
int32_t |
| ) |
|
|
inlinevirtualnoexcept |
Set the tactic to be used in the subsequent call to enqueue(). If no custom tactics were advertised, this will have a value of 0, which is designated as the default tactic.
- Precondition
- INIT API
- Returns
- 0 for success, else non-zero (which will cause engine termination). The returned code will be reported through the error recorder.
The documentation for this class was generated from the following file: