TensorRT  6.0.1.5
nvinfer1::IOutputDimensionsFormula Class Referenceabstract

Application-implemented interface to compute layer output sizes. More...

#include <NvInfer.h>

Public Member Functions

virtual DimsHW compute (DimsHW inputDims, DimsHW kernelSize, DimsHW stride, DimsHW padding, DimsHW dilation, const char *layerName) const =0
 Application-implemented interface to compute the HW output dimensions of a layer from the layer input and parameters. More...
 

Detailed Description

Application-implemented interface to compute layer output sizes.

Member Function Documentation

◆ compute()

virtual DimsHW nvinfer1::IOutputDimensionsFormula::compute ( DimsHW  inputDims,
DimsHW  kernelSize,
DimsHW  stride,
DimsHW  padding,
DimsHW  dilation,
const char *  layerName 
) const
pure virtual

Application-implemented interface to compute the HW output dimensions of a layer from the layer input and parameters.

Parameters
inputDimsThe input dimensions of the layer.
kernelSizeThe kernel size (or window size, for a pooling layer) parameter of the layer operation.
strideThe stride parameter for the layer.
paddingThe padding parameter of the layer.
dilationThe dilation parameter of the layer (only applicable to convolutions).
layerNameThe name of the layer.
Returns
The output size of the layer

Note that for dilated convolutions, the dilation is applied to the kernel size before this routine is called.


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