PyTorch torch.get_deterministic_debug_mode Function
PyTorch torch Reference Manual
torch.get_deterministic_debug_modeIt is a function in PyTorch used to get the deterministic debug mode.
Function Definition
torch.get_deterministic_debug_mode()
Usage Example
Example
import torch
# Get the current deterministic debug mode
mode = torch.get_deterministic_debug_mode()
print("Current deterministic debug mode:", mode)
# Get the current deterministic debug mode
mode = torch.get_deterministic_debug_mode()
print("Current deterministic debug mode:", mode)
Return Value Description:
- 0 - Disabled
- 1 - Enabled but only warns
- 2 - Enabled and raises an error
Other Extensions