ToOpDataType
Function Usage
Converts aclDataType to op::DataType.
aclDataType is the external data type of AscendCL. op::DataType is the internal data type defined by aclnn. In practice, the ge::DataType defined by GE is used.
Prototype
DataType ToOpDataType(aclDataType type)
Parameters
Returns
op::DataType type.
Constraints
None
Example
1 2 3 4 |
// Obtain the DataType enumeration corresponding to ACL_FLOAT. void Func() { DataType type = ToOpDataType(ACL_FLOAT); } |
Parent topic: data_type_utils