For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python module
max.experimental.executor
Executor protocol and concrete implementations for eager graph execution.
An Executor receives a finalized Graph and a
sequence of input Buffer objects and returns output
buffers. Callers must not rely on the graph module being unmodified after
execute returns.
Selection order (highest to lowest priority):
- Constructor injection into
EagerRealizationContext. set_default_executor()/default_executor().MAX_EAGER_EXECUTORenvironment variable (composite|jit|interpreter|compile; defaultcomposite).
Executorsโ
CompilingExecutor | Compiles and executes a graph synchronously via session.load. |
|---|---|
Executor | Contract for running a finalized eager graph against input buffers. |
InterpreterExecutor | Executes a graph via max._interpreter.execute(). |
JitExecutor | Executes via the interpreter while compiling in the background. |
CompositeExecutor | Alias for JitExecutor. |
|---|
Default executorโ
default_executor | Returns the ambient default executor. |
|---|---|
set_default_executor | Sets the ambient default executor. |
Exceptionsโ
UnsupportedGraphError | Raised by an executor that refuses to execute a graph. |
|---|