ToAclFormat
Function Usage
Converts op::Format to aclFormat.
aclFormat is the external data format of Ascend Computing Language (AscendCL). op::Format is the internal data format defined by aclnn. In practice, the ge::Format defined by GE is used.
Prototype
aclFormat ToAclFormat(Format format)
Parameters
Returns
aclFormat type.
Constraints
None
Example
1 2 3 4 |
// Obtain the aclFormat enumeration corresponding to FORMAT_ND. void Func() { aclFormat format = ToAclFormat(FORMAT_ND); } |
Parent topic: format_utils