CheckNodeSupportOnAicore

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

  • Header file: #include <ge/ge_utils.h>
  • Library file: libge_compiler.so

Function Usage

Verifies the input node to check whether it can be executed on the AI Core.

Prototype

1
static Status CheckNodeSupportOnAicore(const GNode &node, bool &is_supported, AscendString &unsupported_reason)

Parameters

Parameter

Input/Output

Description

node

Input

Node to be verified.

is_supported

Output

Whether the node can be executed on the AI Core.

  • true: Supported.
  • false: Not supported.

unsupported_reason

Output

Reason why the node execution is not supported.

Returns

Parameter

Type

Description

-

graphStatus

SUCCESS: Verification succeeded.

FAILED: Verification failed.

Constraints

Before calling this API, ensure that the shape of the node has been inferred. This is because the verification process requires the shape information.