ToAclDataType

Function Usage

Converts op::DataType to aclDataType.

Prototype

aclDataType ToAclDataType(DataType type)

Parameters

Parameter

Input/Output

Description

type

Input

Original data type op::DataType to be converted.

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);
}