IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 class

CompilationStopped

CompilationStopped​

class max.engine.CompilationStopped

source

Bases: RuntimeError

Raised by InferenceSession.compile() when pre_jit stopped it.

With DebugConfig.pre_jit set, the graph compiler writes the Mojo for the graph into DebugConfig.ir_output_dir and stops there, so there is no compiled artifact to return. This is the requested outcome, not a failure; callers that only wanted the emitted Mojo catch it and carry on.