towhee.operator.nop.NOPOperator

class towhee.operator.nop.NOPOperator[source]

Bases: towhee.operator.base.PyOperator

No-op operator. Input arguments are redefined as a NamedTuple and returned as outputs.

Methods

Attributes

flag

key

shared_type

__call__(**args: Dict[str, Any])NamedTuple[source]

The framework calls __call__ function repeatedly for every input data.

Args:

Returns:

Raises:

An exception during __init__ can terminate the graph run.

__init__()[source]

Init operator, before a graph starts, the framework will call Operator __init__ function.

Args:

Raises:

An exception during __init__ can terminate the graph run.