ToOpFormat
Function Usage
Converts aclFormat to op::Format.
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
Format ToOpFormat(aclFormat format)
Parameters
Returns
op::Format type.
Constraints
None
Example
1 2 3 4 |
// Obtain the Format enumeration corresponding to ACL_FORMAT_ND. void Func() { Format format = ToOpFormat(ACL_FORMAT_ND); } |
Parent topic: format_utils