Rate this Page

torch.set_deterministic_debug_mode#

torch.set_deterministic_debug_mode(debug_mode)[source]#

Sets the debug mode for deterministic operations.

Note

This is an alternative interface fortorch.use_deterministic_algorithms(). Refer to that function’sdocumentation for details about affected operations.

Parameters

debug_mode (str orint) – If “default” or 0, don’t error or warn onnondeterministic operations. If “warn” or 1, warn onnondeterministic operations. If “error” or 2, error onnondeterministic operations.