FlowNode

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

Indicates compute nodes in a DataFlow graph.

Prototype

1
FlowNode(input_num, output_num, name=None)

Parameters

Parameter

Data Type

Description

input_num

int

Number of node inputs.

output_num

int

Number of node outputs.

name

str

Node name. The framework automatically ensures that the node name is unique. If this parameter is not set, names such as FlowNode, FlowNode_1, FlowNode_2, and the like will be automatically generated.

Returns

None is returned in normal scenarios.

TypeError is returned when the parameter type is incorrect.

Examples

1
2
import dataflow as df
flow_node = df.FlowNode(input_num=2, output_num=1)

Constraints

None