afe.driver.compile_step
Construction of compilation pipelines from compilation steps.
Classes
A step of processing a model in AFE. |
Module Contents
- class afe.driver.compile_step.CompileStep
A step of processing a model in AFE.
- run() _R
- static pure(value: _A) CompileStep[_A]
Make a CompileStep that evaluates to the given value and does not execute anything.
- then(continuation: Callable[[_R], CompileStep[_T]]) CompileStep[_T]
Compose this step with a continuation that processes this step’s result.
- static from_thunk(thunk: Callable[[], _T]) CompileStep[_T]
Make a CompileStep that evaluates the given thunk when it runs.
- map(f: Callable[[_R], _T]) CompileStep[_T]
Map a function over the result of this CompileStep.