__call__

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

Calls FlowNode for computation.

Prototype

1
__call__(*inputs)

Parameters

Parameter

Data Type

Value 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