GetDataType
Description
Obtains the data type of a tensor described by TensorDesc.
Prototype
DataType GetDataType() const
Parameters
None
Returns
DataType, that is, data type of the tensor described by TensorDesc.
Exception Handling
None
Restrictions
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