fnode

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

Generates a FlowNode based on the current GraphProcessPoint and returns a FlowNode object.

Prototype

1
fnode(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

The FlowNode object is returned.

Examples

1
2
3
import dataflow as df
pp1 = df.GraphProcessPoint(...)
flow_node = pp1.fnode(input_num=2, output_num=1)

Constraints

None