dataflow.FlowGraphProcessPoint

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

Defines the FlowGraphProcessPoint constructor, which returns a FlowGraphProcessPoint object.

Prototype

1
FlowGraphProcessPoint(flow_graph, compile_config_path="", name=None)

Parameters

Parameter

Data Type

Description

flow_graph

FlowGraph

dataflow.FlowGraph subgraph.

compile_config_path

str

Path of the configuration file for compiling FlowGraph. By default, this parameter is not set.

name

str

Name of the ProcessPoint. The framework automatically ensures that the name is unique. If this parameter is not set, names such as FlowGraphProcessPoint, FlowGraphProcessPoint_1, FlowGraphProcessPoint_2, and the like will be automatically generated.

Returns

None is returned in normal scenarios.

A DfException is thrown upon exceptions. You can catch DfException and retrieve its error_code and message attributes to check the specific error code and error details. For details, see DataFlow Error Codes.

Examples

1
2
import dataflow as df
pp1 = df.FlowGraphProcessPoint(...)

Constraints

None