PyTorch torch.is_deterministic_algorithms_warn_only_enabled Function


Pytorch torch 参考手册Pytorch torch Reference Manual

torch.is_deterministic_algorithms_warn_only_enabledIt is a function in PyTorch used to check whether the deterministic algorithms mode is set to warn-only.

Function Definition

torch.is_deterministic_algorithms_warn_only_enabled()

Usage Example

Example

import torch

# Check whether it is warn-only mode
is_warn_only = torch.is_deterministic_algorithms_warn_only_enabled()
print("Whether it is warn-only mode:", is_warn_only)

Pytorch torch 参考手册Pytorch torch Reference Manual

Other Extensions