GetDataTypeSize

Function Usage

Obtains the data type of a tensor. The byte length of the data type is returned based on the specified TensorDataType.

Prototype

1
uint32_t TensorBase::GetDataTypeSize() const;

Response Parameters

Data Structure

Description

uint32_t

Byte length corresponding to the tensor data type.