We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e8d0a commit 53429dfCopy full SHA for 53429df
1 file changed
src/py_utils/utils_torch.py
@@ -44,7 +44,7 @@ def seed_everything(seed=42, verbose=False):
44
torch.cuda.manual_seed_all(seed) # if you are using multi-GPU.
45
torch.backends.cudnn.deterministic = True
46
torch.backends.cudnn.benchmark = False
47
- torch.use_deterministic_algorithms(True)
+ torch.use_deterministic_algorithms(True, warn_only=True)
48
49
if verbose:
50
print(f"Seed set to: {seed} (type: {type(seed)})")
0 commit comments