SetOutputs (index)

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Sets the association between FlowNode in FlowGraph and FlowNode output index, and returns the graph. This function is generally used to set some outputs of FlowNode. For example, if FlowNode1 has two outputs but only one output of FlowNode1 needs to be used as the input of FlowNode2, you can call this API to set one output index of FlowNode1.

Prototype

1
FlowGraph &SetOutputs(const std::vector<std::pair<FlowOperator, std::vector<size_t>>> &output_indexes)

Command-Line Options

Parameter

Input/Output

Description

output_indexes

Input

A set of associations between output nodes and node output indexes.

Returns

A FlowGraph with the association between output nodes and node output indexes set.

Exception Handling

None

Constraints

None