add_process_point

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

Adds a mapping ProcessPoint (PP) to a FlowNode. Currently, only one PP can be added to a FlowNode. After a PP is added, the input and output of the FlowNode are mapped to those of the PP in sequence by default.

Prototype

1
add_process_point(pp)

Parameters

Parameter

Data Type

Description

pp

Union[GraphProcessPoint, FuncProcessPoint]

ProcessPoint mapped to a FlowNode. The value can be GraphProcessPoint or FuncProcessPoint.

Returns

None is returned in normal scenarios.

TypeError is returned when the parameter type is incorrect.

Examples

1
2
3
4
import dataflow as df
pp = df.FuncProcessPoint(...)
flow_node = df.FlowNode(...)
flow_node.add_process_point(pp)

Constraints

The numbers of inputs and outputs of the added ProcessPoints should be the same as those of the FlowNode.