towhee.functional.mixins.dag.register_dag

towhee.functional.mixins.dag.register_dag(f)[source]

Wrapper used for registering the DataCollection operation in the chains’ DAG.

Parameters:

f (callable) – The function to wrap.

Returns:

Returns the result of function called on self.

Return type:

Any