OpSelectFormat

Function Usage

Registers a format selection function to obtain the data type and data format. Operators determine whether to support the function.

Prototype

1
OpImplRegisterV2 &OpSelectFormat(OP_CHECK_FUNC_V2 op_select_format_func)

Parameters

Parameter

Input/Output

Description

select_format_func

Input

OP_CHECK_FUNC_V2 function to be registered.

The OP_CHECK_FUNC_V2 type is defined as follows:

1
using OP_CHECK_FUNC_V2 = ge::graphStatus (*)(const OpCheckContext *context, ge::AscendString &result);

Returns

OpImplRegisterV2 object of the operator, where the OP_CHECK_FUNC_V2 function is registered.

Constraints

None