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