ADD_TO_LAUNCHER_LIST_AICORE

Function Usage

Creates an execution task of an AI Core operator and places the task in the aclOpExecutor execution queue. The task is executed when the second-phase API aclnnXxx is called.

Prototype

ADD_TO_LAUNCHER_LIST_AICORE(KERNEL_NAME, op_args...)

The following are associated APIs called by the preceding macro definitions:

OP_INPUT(x...)

OP_OUTPUT(x...)

OP_ATTR(x...)

OP_WORKSPACE(x...)

OP_OUTSHAPE(x...)

OP_OPTION(x...)

OP_EMPTY_ARG

OP_MODE(x...)

Parameters

Parameter

Input/Output

Description

KERNEL_NAME

Input

Operator name, for example, Add.

op_args...

Input

Operator arguments, including OP_INPUT, OP_OUTPUT, and OP_ATTR.

Constraints

If the operator requires INFER_SHAPE, this macro must be called after INFER_SHAPE.

Example

1
2
// Call ADD_TO_LAUNCHER_LIST_AICORE to create an execution task for the add operator. Add is the operator name, self and other are operator input parameters, and addOut is the operator output parameter.
ADD_TO_LAUNCHER_LIST_AICORE(Add, OP_INPUT(self, other), OP_OUTPUT(addOut));