legate.core.TaskConfig.variant_options#
- TaskConfig.variant_options#
VariantOptions | None
Get the current variant options if they have been set.
The returned object is a copy of the true variant options due to the fact that Python does not expose “const” views of objects. Therefore, any mutations performed on the returned
VariantOptions
will not be reflected in theTaskConfig
. To update the value, the user must re-set the new value:options = config.variant_options # Set some new value etc... options.may_throw_exception = True # Must re-set the value after modification in order to modify the # task config config.variant_options = options
- Returns:
The variant options or None if no options have been set.
- Return type:
VariantOptions | None
- Type:
TaskConfig.variant_options