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 function
set_default_realization_context
set_default_realization_context()
max.experimental.realization_context.set_default_realization_context(fn)
Sets the constructor used by default_realization_context().
The set takes effect immediately. The returned
SetterContext may be used as a
context manager to restore the previous constructor on exit, or
discarded to keep the new one.
-
Parameters:
-
fn (Callable[[], RealizationContext]) – A zero-argument callable returning a new realization context, invoked each time an op realizes outside any explicit context.
-
Returns:
-
An undo handle restoring the previously installed constructor.
-
Return type:
-
SetterContext[Callable[[], RealizationContext]]