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[source]ο
A step of processing a model in AFE.
- static pure(value: _A) CompileStep[_A] [source]ο
Make a CompileStep that evaluates to the given value and does not execute anything.
- then(continuation: Callable[[_R], CompileStep[_T]]) CompileStep[_T] [source]ο
Compose this step with a continuation that processes this stepβs result.
- static from_thunk(thunk: Callable[[], _T]) CompileStep[_T] [source]ο
Make a CompileStep that evaluates the given thunk when it runs.
- map(f: Callable[[_R], _T]) CompileStep[_T] [source]ο
Map a function over the result of this CompileStep.