TensorRT 10.5.0
nvinfer1::Permutation Struct Reference

Represents a permutation of dimensions. More...

#include <NvInfer.h>

Public Attributes

int32_t order [Dims::MAX_DIMS]
 

Detailed Description

Represents a permutation of dimensions.

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:

  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