---
title: thunder.executors.passes.transform_for_execution
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.executors.passes.transform_for_execution
---
# thunder.executors.passes.transform_for_execution {#thunder-executors-passes-transform-for-execution}

### `thunder.executors.passes.transform_for_execution(trace, executors_list)` {#thunder.executors.passes.transform_for_execution}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/executors/passes.py#L107-L146)

Return type:

[`TraceCtx`](/docs/thunder/core/generated/thunder.core.trace.TraceCtx#thunder.core.trace.TraceCtx "thunder.core.trace.TraceCtx")

Parameters:

*   **trace** ([_TraceCtx_](/docs/thunder/core/generated/thunder.core.trace.TraceCtx#thunder.core.trace.TraceCtx "thunder.core.trace.TraceCtx")) –
    
*   **executors\_list** ([_Sequence_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence "(in Python v3.15)")_\[_[_Executor_](/docs/thunder/extend/thunder.extend.Executor#thunder.extend.Executor "thunder.extend.Executor")_\]_) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
