NVIDIA DRIVE OS Linux SDK API Reference

6.0.5 Release
NvMediaTensorMetaData Struct Reference

Detailed Description

Holds the tensor metadata.

Definition at line 428 of file nvmedia_tensormetadata.h.

Data Fields

uint32_t dimsNum
 Holds the number of valid elements in dimSizes[] and dimstrides[]. More...
 
uint32_t dimSizes [NVMEDIA_TENSOR_MAX_DIMENSIONS]
 Holds the size of each dimension. More...
 
uint32_t dimstrides [NVMEDIA_TENSOR_MAX_DIMENSIONS]
 Holds strides(in bytes) for each dimension present in the tensor. More...
 
uint32_t dimsOrder
 Holds the order of the dimensions. More...
 
uint32_t bitsPerElement
 Holds the bitsPerElement such as NVM_TENSOR_ATTR_BITS_PER_ELEMENT_8/16. More...
 
uint32_t dataType
 Holds the tensor datatype, such as NVM_TENSOR_ATTR_DATA_TYPE_INT/FLOAT. More...
 
uint32_t attrib4D_N
 Holds the tensor attribute N. More...
 
uint32_t attrib4D_C
 Holds the tensor attribute C. More...
 
uint32_t attrib4D_H
 Holds the tensor attribute H. More...
 
uint32_t attrib4D_W
 Holds the tensor attribute W. More...
 
uint32_t attrib4D_X
 Holds the tensor attribute X. More...
 

Field Documentation

◆ attrib4D_C

uint32_t NvMediaTensorMetaData::attrib4D_C

Holds the tensor attribute C.

Definition at line 457 of file nvmedia_tensormetadata.h.

◆ attrib4D_H

uint32_t NvMediaTensorMetaData::attrib4D_H

Holds the tensor attribute H.

Definition at line 459 of file nvmedia_tensormetadata.h.

◆ attrib4D_N

uint32_t NvMediaTensorMetaData::attrib4D_N

Holds the tensor attribute N.

Definition at line 455 of file nvmedia_tensormetadata.h.

◆ attrib4D_W

uint32_t NvMediaTensorMetaData::attrib4D_W

Holds the tensor attribute W.

Definition at line 461 of file nvmedia_tensormetadata.h.

◆ attrib4D_X

uint32_t NvMediaTensorMetaData::attrib4D_X

Holds the tensor attribute X.

Definition at line 463 of file nvmedia_tensormetadata.h.

◆ bitsPerElement

uint32_t NvMediaTensorMetaData::bitsPerElement

Holds the bitsPerElement such as NVM_TENSOR_ATTR_BITS_PER_ELEMENT_8/16.

Definition at line 451 of file nvmedia_tensormetadata.h.

◆ dataType

uint32_t NvMediaTensorMetaData::dataType

Holds the tensor datatype, such as NVM_TENSOR_ATTR_DATA_TYPE_INT/FLOAT.

Definition at line 453 of file nvmedia_tensormetadata.h.

◆ dimSizes

uint32_t NvMediaTensorMetaData::dimSizes[NVMEDIA_TENSOR_MAX_DIMENSIONS]

Holds the size of each dimension.

The dimSizes ordering is as below:

  • For NVM_TENSOR_ATTR_DIMENSION_ORDER_NHWC: N -> 0, H -> 1, W -> 2, C -> 3
  • For NVM_TENSOR_ATTR_DIMENSION_ORDER_NCHW: N -> 0, C -> 1, H -> 2, W -> 3
  • For NVM_TENSOR_ATTR_DIMENSION_ORDER_NCxHWx: N -> 0, C -> 1, H -> 2, W -> 3, X -> 4

Definition at line 443 of file nvmedia_tensormetadata.h.

◆ dimsNum

uint32_t NvMediaTensorMetaData::dimsNum

Holds the number of valid elements in dimSizes[] and dimstrides[].

For example, dimsNum = 4 for NHWC and NCHW, and dimsNum = 5 for NCxHWx.

Definition at line 434 of file nvmedia_tensormetadata.h.

◆ dimsOrder

uint32_t NvMediaTensorMetaData::dimsOrder

Holds the order of the dimensions.

Definition at line 449 of file nvmedia_tensormetadata.h.

◆ dimstrides

uint32_t NvMediaTensorMetaData::dimstrides[NVMEDIA_TENSOR_MAX_DIMENSIONS]

Holds strides(in bytes) for each dimension present in the tensor.

The dimstrides ordering is same as that of dimSizes documented above.

Definition at line 447 of file nvmedia_tensormetadata.h.


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