TensorRT 10.6.0
nvinfer1::v_2_0::IPluginV3OneBuild Class Reference

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::v_2_0::IPluginV3OneBuild:
nvinfer1::v_1_0::IPluginV3OneBuild nvinfer1::v_1_0::IPluginCapability nvinfer1::IVersionedInterface

Public Member Functions

InterfaceInfo getInterfaceInfo () const noexcept override
 Return version information associated with this interface. Applications must not override this method. More...
 
virtual int32_t getAliasedInput (int32_t outputIndex) noexcept
 Communicates to TensorRT that the output at the specified output index is aliased to the input at the returned index. More...
 
- Public Member Functions inherited from nvinfer1::v_1_0::IPluginV3OneBuild
virtual int32_t configurePlugin (DynamicPluginTensorDesc const *in, int32_t nbInputs, DynamicPluginTensorDesc const *out, int32_t nbOutputs) noexcept=0
 Configure the plugin. More...
 
virtual int32_t getOutputDataTypes (DataType *outputTypes, int32_t nbOutputs, const DataType *inputTypes, int32_t nbInputs) const noexcept=0
 Provide the data types of the plugin outputs if the input tensors have the data types provided. More...
 
virtual int32_t getOutputShapes (DimsExprs const *inputs, int32_t nbInputs, DimsExprs const *shapeInputs, int32_t nbShapeInputs, DimsExprs *outputs, int32_t nbOutputs, IExprBuilder &exprBuilder) noexcept=0
 Provide expressions for computing dimensions of the output tensors from dimensions of the input tensors. More...
 
virtual bool supportsFormatCombination (int32_t pos, DynamicPluginTensorDesc const *inOut, int32_t nbInputs, int32_t nbOutputs) noexcept=0
 Return true if plugin supports the format and datatype for the input/output indexed by pos. More...
 
virtual int32_t getNbOutputs () const noexcept=0
 Get the number of outputs from the plugin. More...
 
virtual size_t getWorkspaceSize (DynamicPluginTensorDesc const *inputs, int32_t nbInputs, DynamicPluginTensorDesc const *outputs, int32_t nbOutputs) const noexcept
 Find the workspace size required by the layer. More...
 
virtual int32_t getValidTactics (int32_t *tactics, int32_t nbTactics) noexcept
 Query for any custom tactics that the plugin intends to use. More...
 
virtual int32_t getNbTactics () noexcept
 Query for the number of custom tactics the plugin intends to use. More...
 
virtual char const * getTimingCacheID () noexcept
 Called to query the suffix to use for the timing cache ID. May be called anytime after plugin creation. More...
 
virtual int32_t getFormatCombinationLimit () noexcept
 Return the maximum number of format combinations that will be timed by TensorRT during the build phase. More...
 
virtual char const * getMetadataString () noexcept
 Query for a string representing the configuration of the plugin. May be called anytime after plugin creation. More...
 
- Public Member Functions inherited from nvinfer1::IVersionedInterface
virtual APILanguage getAPILanguage () const noexcept
 The language used to build the implementation of this Interface. More...
 
virtual ~IVersionedInterface () noexcept=default
 

Additional Inherited Members

- Static Public Attributes inherited from nvinfer1::v_1_0::IPluginV3OneBuild
static constexpr int32_t kDEFAULT_FORMAT_COMBINATION_LIMIT = 100
 The default maximum number of format combinations that will be timed by TensorRT during the build phase. More...
 
- Protected Member Functions inherited from nvinfer1::IVersionedInterface
 IVersionedInterface ()=default
 
 IVersionedInterface (IVersionedInterface const &)=default
 
 IVersionedInterface (IVersionedInterface &&)=default
 
IVersionedInterfaceoperator= (IVersionedInterface const &) &=default
 
IVersionedInterfaceoperator= (IVersionedInterface &&) &=default
 

Member Function Documentation

◆ getAliasedInput()

virtual int32_t nvinfer1::v_2_0::IPluginV3OneBuild::getAliasedInput ( int32_t  outputIndex)
inlinevirtualnoexcept

Communicates to TensorRT that the output at the specified output index is aliased to the input at the returned index.

Enables read-modify-write behavior in plugins. TensorRT may insert copies to facilitate this capability.

Returns
An integer denoting the index of the input which is aliased to the output at outputIndex. Returning -1 indicates that the output is not aliased to any input. Otherwise, the valid range for return value is [0, nbInputs - 1].
Note
A given plugin input can only be aliased to a single plugin output.
This API will only be called and have an effect when PreviewFeature::kALIASED_PLUGIN_IO_10_03 is turned on.
Warning
If an input is not shallow copyable, a copy inserted by TensorRT may not work as intended. Therefore, using this feature with tensors requiring deep copies is not supported.
If a given tensor is requested to be aliased by two different plugins, this may result in divergent copies of the tensor after writes from each plugin. e.g. In the below example, t1 and t2 could be divergent.
   +-----+            +--------+
+->|Copy +--> t* ---->|Plugin0 +--> t1
|  +-----+            +--------+
t
|  +-----+            +--------+
+->|Copy +--> t** --->|Plugin1 +--> t2
   +-----+            +--------+

◆ getInterfaceInfo()

InterfaceInfo nvinfer1::v_2_0::IPluginV3OneBuild::getInterfaceInfo ( ) const
inlineoverridevirtualnoexcept

Return version information associated with this interface. Applications must not override this method.

Reimplemented from nvinfer1::v_1_0::IPluginV3OneBuild.


The documentation for this class was generated from the following file:

  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