|
| DumpTensorPlugin (std::shared_ptr< std::ostream > out) |
|
| ~DumpTensorPlugin () override=default |
|
int | getNbOutputs () const override |
| Get the number of outputs from the layer. More...
|
|
nvinfer1::Dims | getOutputDimensions (int index, const nvinfer1::Dims *inputs, int nbInputDims) override |
|
void | configure (const nvinfer1::Dims *inputDims, int nbInputs, const nvinfer1::Dims *outputDims, int nbOutputs, int maxBatchSize) override |
|
int | initialize () override |
| Initialize the layer for execution. More...
|
|
void | terminate () override |
| Release resources acquired during plugin layer initialization. More...
|
|
size_t | getWorkspaceSize (int maxBatchSize) const override |
|
int | enqueue (int batchSize, const void *const *inputs, void **outputs, void *workspace, cudaStream_t stream) override |
|
size_t | getSerializationSize () override |
| Find the size of the serialization buffer required. More...
|
|
void | serialize (void *buffer) override |
| Serialize the layer. More...
|
|
virtual Dims | getOutputDimensions (int32_t index, const Dims *inputs, int32_t nbInputDims)=0 |
| Get the dimension of an output tensor. More...
|
|
virtual void | configure (const Dims *inputDims, int32_t nbInputs, const Dims *outputDims, int32_t nbOutputs, int32_t maxBatchSize)=0 |
| Configure the layer. More...
|
|
virtual size_t | getWorkspaceSize (int32_t maxBatchSize) const =0 |
| Find the workspace size required by the layer. More...
|
|
virtual int32_t | enqueue (int32_t batchSize, const void *const *inputs, void **outputs, void *workspace, cudaStream_t stream)=0 |
| Execute the layer. More...
|
|
virtual void nvinfer1::IPlugin::configure |
( |
const Dims * |
inputDims, |
|
|
int32_t |
nbInputs, |
|
|
const Dims * |
outputDims, |
|
|
int32_t |
nbOutputs, |
|
|
int32_t |
maxBatchSize |
|
) |
| |
|
pure virtualinherited |
Configure the layer.
This function is called by the builder prior to initialize(). It provides an opportunity for the layer to make algorithm choices on the basis of its weights, dimensions, and maximum batch size. The type is assumed to be FP32 and format NCHW.
- Parameters
-
inputDims | The input tensor dimensions. |
nbInputs | The number of inputs. |
outputDims | The output tensor dimensions. |
nbOutputs | The number of outputs. |
maxBatchSize | The maximum batch size. |
The dimensions passed here do not include the outermost batch size (i.e. for 2-D image networks, they will be 3-dimensional CHW dimensions).
This method is not called for PluginExt classes, configureWithFormat is called instead.
Implemented in nvinfer1::IPluginExt.