mindspore.device_context.ascend.op_debug.debug_option
- mindspore.device_context.ascend.op_debug.debug_option(option_value)[source]
Enable debugging options for Ascend operators, default not enabled.
- Parameters
option_value (str) –
Ascend operators debugging configuration. Currently, only memory access violation detection is supported. The value currently only supports being set to
"oom"
."oom"
: When there is a memory out of bounds during the execution of an operator, AscendCL will return an error code ofEZ9999
.
Examples
>>> import mindspore as ms >>> ms.device_context.ascend.op_debug.debug_option("oom")