AutoMappingSubgraphIndex

Description

Sets the mapping between the input and output of the subgraph and the input and output of the parent node of the main model.

Prototype

Status AutoMappingSubgraphIndex(const ge::Graph &graph,

const std::function<int32_t(int32_t data_index)> &input,

const std::function<int32_t(int32_t netoutput_index)> &output)

Status AutoMappingSubgraphIndex(const ge::Graph &graph,

const std::function<Status(int32_t data_index, int32_t &parent_input_index)> &input,

const std::function<Status(int32_t netoutput_index, int32_t &parent_output_index)> &output)

Parameters

Parameter

Input/Output

Description

graph

Input

Subgraph object.

input

Input

Input mapping function.

output

Input

Output mapping function.

Restrictions

None