Python function
auto_cast_weights_from_env
auto_cast_weights_from_env()
max.pipelines.modeling.weights.auto_cast_weights_from_env()
Returns the pipeline default for Module auto-cast, read from env.
Reads MODULAR_AUTO_CAST_WEIGHTS; defaults to True when unset.
Accepted values are true/false/1/0/yes/no/
on/off (case-insensitive). Any other value raises
ValueError so a typo surfaces immediately rather than silently
falling back to a default.
-
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!