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

CustomExtensionsType

CustomExtensionsType​

max.engine.CustomExtensionsType

source

Specifies one or more custom extension libraries to load with an InferenceSession.

It may be a single path or a sequence of paths, where each path is a str or Path pointing to a compiled .mojoc custom ops library or a .mojo source file. When a .mojo source path is provided, it’s automatically compiled into a package before loading.

alias of Sequence[str | Path] | str | Path