TensorRT  8.0.2
nvinfer1::Permutation Struct Reference

Public Attributes

int32_t order [Dims::MAX_DIMS]
 

Member Data Documentation

◆ order

int32_t nvinfer1::Permutation::order[Dims::MAX_DIMS]

The elements of the permutation. The permutation is applied as outputDimensionIndex = permutation.order[inputDimensionIndex], so to permute from CHW order to HWC order, the required permutation is [1, 2, 0], and to permute from HWC to CHW, the required permutation is [2, 0, 1].


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