ParseSubgraphPostFn

Function Usage

Registers the function for mapping between the input/output nodes in an operator subgraph and those of the operators based on the operator types.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
OpRegistrationData &ParseSubgraphPostFn(const ParseSubgraphFunc &subgraph_post_fn)
OpRegistrationData &ParseSubgraphPostFn(const ParseSubgraphFuncV2 &subgraph_post_fn)

Parameters

Parameter

Input/Output

Description

subgraph_post_fn

Input

Function object for mapping between the input/output nodes in an operator subgraph and those of the operators.

For details, see Callback Function ParseSubgraphFuncV2.

Constraints

None

Callback Function ParseSubgraphFuncV2

Call the user-defined ParseSubgraphFuncV2 function to map the input/output nodes in the subgraph to those of the operators.

1
Status ParseSubgraphFuncV2(const ge::AscendString &subgraph_name, const ge::Graph &graph)
Table 1 Parameters

Parameter

Input/Output

Description

subgraph_name

Input

Subgraph name.

graph

Output

Constructed subgraph.