# NVIDIA DRIVE OS Linux SDK API Reference

## Detailed Description

Definition at line 423 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 4D tensor attribute N. More...

uint32_t attrib4D_C
Holds the 4D tensor attribute C. More...

uint32_t attrib4D_H
Holds the 4D tensor attribute H. More...

uint32_t attrib4D_W
Holds the 4D tensor attribute W. More...

uint32_t attrib4D_X
Holds the 4D tensor attribute X. More...

## ◆ attrib4D_C

Holds the 4D tensor attribute C.

Definition at line 443 of file nvmedia_tensormetadata.h.

## ◆ attrib4D_H

Holds the 4D tensor attribute H.

Definition at line 445 of file nvmedia_tensormetadata.h.

## ◆ attrib4D_N

Holds the 4D tensor attribute N.

Definition at line 441 of file nvmedia_tensormetadata.h.

## ◆ attrib4D_W

Holds the 4D tensor attribute W.

Definition at line 447 of file nvmedia_tensormetadata.h.

## ◆ attrib4D_X

Holds the 4D tensor attribute X.

Definition at line 449 of file nvmedia_tensormetadata.h.

## ◆ bitsPerElement

Holds the bitsPerElement such as NVM_TENSOR_ATTR_BITS_PER_ELEMENT_8/16.

Definition at line 437 of file nvmedia_tensormetadata.h.

## ◆ dataType

Holds the tensor datatype, such as NVM_TENSOR_ATTR_DATA_TYPE_INT/FLOAT.

Definition at line 439 of file nvmedia_tensormetadata.h.

## ◆ dimSizes

Holds the size of each dimension.

Definition at line 431 of file nvmedia_tensormetadata.h.

## ◆ 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 429 of file nvmedia_tensormetadata.h.

## ◆ dimsOrder

Holds the order of the dimensions.

Definition at line 435 of file nvmedia_tensormetadata.h.