Skip to content

Commit 30d0107

Browse files
committed
revert commenting out disabling autograd
1 parent 3bb7ee5 commit 30d0107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def setup():
3636
# turn off gradients by default
3737
import torch
3838

39-
# torch.autograd.set_grad_enabled(False)
39+
torch.autograd.set_grad_enabled(False)
4040

4141
logging.warning("Disabling gradients by default. Use\nwith torch.enable_grad():\nin custom training loops.")
4242

0 commit comments

Comments
 (0)