# tensorplay.set_deterministic_debug_mode

Source: https://www.tensorplay.cn/docs/generated/tensorplay.set_deterministic_debug_mode.html

# tensorplay.set_deterministic_debug_mode

tensorplay.set_deterministic_debug_mode(debug_mode: [int](https://docs.python.org/3/library/functions.html#int) | [str](https://docs.python.org/3/library/stdtypes.html#str)) &#x2192; [None](https://docs.python.org/3/library/constants.html#None)[[source]](../_modules/tensorplay.html#set_deterministic_debug_mode)

Sets the debug mode for deterministic operations.

Note

This is an alternative interface for
[tensorplay.use_deterministic_algorithms()](tensorplay.use_deterministic_algorithms.html#tensorplay.use_deterministic_algorithms). Refer to that function’s
documentation for details about affected operations.

Parameters:

debug_mode ([str](https://docs.python.org/3/library/stdtypes.html#str) or [int](https://docs.python.org/3/library/functions.html#int)) – If “default” or 0, don’t error or warn on
nondeterministic operations. If “warn” or 1, warn on
nondeterministic operations. If “error” or 2, error on
nondeterministic operations.
