Run

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <ge/fusion/pass/decompose_pass.h>
  • Library file: libge_compiler

Function Usage

Finds matched nodes in a graph based on the op types declared during registration.

For the matched nodes, the MeetRequirements function defined by the subclass is called to check for replaceability. The Replacement structure defined by the subclass is then obtained to sequentially replace each matched node in the graph.

Note: The Run function can be used to process only the current graph. If a subgraph needs to be processed, the pass caller is responsible for processing the subgraph.

Prototype

1
Status Run(GraphPtr &graph, CustomPassContext &pass_context) override

Parameters

Parameter

Input/Output

Description

graph

Input

Original graph to be modified.

pass_context

Input

Custom pass context.

Returns

Parameter

Type

Description

-

Status

SUCCESS: Replacement succeeded.

FAILED: Replacement failed.

Restrictions

None