torch.set_deterministic_debug_mode torch.set_deterministic_debug_mode(debug_mode) Sets the debug mode for deterministic operations.