torch.set_deterministic_debug_mode — PyTorch 2.7 documentation (original) (raw)

Shortcuts

torch.set_deterministic_debug_mode(debug_mode)[source][source]

Sets the debug mode for deterministic operations.

Parameters

debug_mode (str or 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.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.