towhee.engine.graph_context.GraphContext¶
- class towhee.engine.graph_context.GraphContext(ctx_idx: int, graph_repr: GraphRepr)[source]¶
Bases:
objectGraphContext 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
gcjoinresultSlow down the op whose df name it.
spped up the op whose df name it.
stopAttributes
dataframesReturns the graph's input DataFrame.
op_ctxsReturns the graph's output DataFrame.
- property inputs: DataFrame¶
Returns the graph’s input DataFrame.
- Returns:
- (towhee.dataframe.DataFrame)
The input DataFrame.