ToOpFormat

Function Usage

Converts aclFormat to op::Format.

Prototype

Format ToOpFormat(aclFormat format)

Parameters

Parameter

Input/Output

Description

format

Input

Source data format aclFormat to be converted.

Returns

op::Format type.

Constraints

None

Examples

1
2
3
4
// Obtain the Format enumeration corresponding to ACL_FORMAT_ND.
void Func() {
    Format format = ToOpFormat(ACL_FORMAT_ND);
}