add_invoked_closure

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 GraphProcessPoint or FlowGraphProcessPoint to be called by FuncProcessPoint, and returns FuncProcessPoint.

Prototype

1
2
add_invoked_closure(graph_key, graph_pp)
add_invoked_closure(graph_key, flow_graph_pp)

Parameters

Parameter

Data Type

Description

graph_key

str

Name of the called GraphProcessPoint, which must be unique for a graph.

graph_pp

GraphProcessPoint

Called GraphProcessPoint. For details, see dataflow.GraphProcessPoint.

flow_graph_pp

FlowGraphProcessPoint

Called FlowGraphProcessPoint. For details, see dataflow.FlowGraphProcessPoint.

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(...)
pp1 = df.GraphProcessPoint(...)
pp.add_invoked_closure(graph_key, pp1)

Constraints

None