GetSizeByDataType
Description
Obtains the DataType memory size, in bytes.
Prototype
int GetSizeByDataType(DataType dataType)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dataType |
Input |
Data type |
Returns
An int for the DataType memory size, in bytes. –1 indicates an unsupported data type.
Restrictions
None
Example
int size = GetSizeByDataType(DT_FLOAT);
Parent topic: AI CPU API