Execute

Applicable Products

All processors

Header File/Library File

  • Header file: #include <graph/custom_op.h>
  • Library file: liblowering.so

Function Usage

Execution function for eager custom operators.

Prototype

1
virtual graphStatus Execute(gert::EagerOpExecutionContext *ctx) = 0

Parameters

Parameter

Input/Output

Description

ctx

Input

Execution context, which can be used to obtain input tensors, allocate the output memory, and manage workspace allocation.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure.

Restrictions

None