__call__

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

Calls FlowNode for computation.

Prototype

1
__call__(*inputs)

Parameters

Parameter

Data Type

Description

*inputs

Union[FlowData, FlowOutput]

Dynamic parameter. The type is FlowData or FlowOutput.

Returns

If there is only one output, the FlowOutput object is returned. If there are multiple outputs, the FlowOutput tuple is returned.

The errors are as follows.

Error Information

Description

TypeError

The parameter type is incorrect.

ValueError

The parameter value is incorrect.

Examples

1
2
3
4
import dataflow as df
data = df.FlowData()
flow_node = df.FlowNode(...)
flow_output = flow_node(data)

Constraints

None