ToAclDataType
Function Usage
Converts op::DataType to aclDataType.
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
aclDataType ToAclDataType(DataType type)
Parameters
Returns
aclDataType type.
Constraints
None
Example
1 2 3 4 |
// Obtain the aclDataType enumeration corresponding to DT_FLOAT. void Func() { aclDataType type = ToAclDataType(DT_FLOAT); } |
Parent topic: data_type_utils