FlowNode
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
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
Parent topic: dataflow.FlowNode