ToAclDataType
Function Usage
Converts op::DataType to aclDataType
The definition of aclDataType is provided by AscendCL. For details, see aclDataType.
Prototype
aclDataType ToAclDataType(DataType type)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
type |
Input |
op::DataType to be converted. aclDataType is defined as follows |
Returns
aclDataType type.
Constraints
None
Examples
1 2 3 4 | // Obtain the aclDataType enumeration corresponding to DT_FLOAT. void Func() { aclDataType type = ToAclDataType(DT_FLOAT); } |
Parent topic: data_type_utils