SetOutputs (index)

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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)

Parameters

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