GetDataType
Function Usage
Obtains the data type of a tensor described by TensorDesc.
Prototype
1 | DataType GetDataType() const |
Parameters
None
Returns
DataType, that is, data type of the tensor described by TensorDesc.
Exception Handling
None
Constraints
The returned data type is obtained through value copy (deep copy). This API modifies the returned data type, which does not affect the existing data type information in TensorDesc.
Parent topic: TensorDesc