fnode

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

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

Value 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