mindspore.device_context.ascend.op_debug.debug_option

View Source On AtomGit
mindspore.device_context.ascend.op_debug.debug_option(option_value)[source]

Enable debugging options for Ascend operators, disabled by default.

Parameters

option_value (str) –

Ascend operator debugging configuration. Currently, only memory access violation detection is supported. The value currently only supports being set to "oom".

  • "oom": When a memory out-of-bounds access occurs during the execution of an operator, AscendCL will return an error code of EZ9999.

Examples

>>> import mindspore as ms
>>> ms.device_context.ascend.op_debug.debug_option("oom")