MapInput

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

Maps inputs to FlowNode, indicating that the input node_input_index of FlowNode is sent to the input pp_input_index of ProcessPoint, all attributes in attrs are set for the input of ProcessPoint, and the mapped FlowNode is returned. This function is optional. If it is not called, the inputs of FlowNode and ProcessPoint are mapped in sequence by default.

Prototype

1
FlowNode &MapInput(uint32_t node_input_index, const ProcessPoint &pp, uint32_t pp_input_index, const std::vector<DataFlowInputAttr> &attrs = {})

Parameters

Parameter

Input/Output

Description

node_input_index

Input

Input index of FlowNode.

pp

Input

ProcessPoint mapped from the FlowNode node.

pp_input_index

Input

Input index of ProcessPoint.

attrs

Input

Attribute set. For details about the attribute values, see Struct DataFlowInputAttr.

Returns

A FlowNode node with the input mapped.

Exception Handling

None

Constraints

This API can be called only after the FlowNode &AddPp API is called.