towhee.engine.graph_context.GraphContext¶
- class towhee.engine.graph_context.GraphContext(ctx_idx: int, graph_repr: GraphRepr)[source]¶
Bases:
object
GraphContext is a data processing network with one or multiple Operator. Each row of a Pipeline’s inputs will be processed individually by a GraphContext.
- Parameters:
ctx_idx – (int) The index of this GraphContext.
graph_repr – (towhee.dag.GraphRepr) The DAG representation this GraphContext will implement.
Methods
gc
join
result
Slow down the op whose df name it.
spped up the op whose df name it.
stop
Attributes
dataframes
Returns the graph's input DataFrame.
op_ctxs
Returns the graph's output DataFrame.
- property inputs: DataFrame¶
Returns the graph’s input DataFrame.
- Returns:
- (towhee.dataframe.DataFrame)
The input DataFrame.