Skip to content

Commit 40aba9f

Browse files
committed
tc
1 parent 55abc48 commit 40aba9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
# -- Sphinx-gallery configuration --------------------------------------------
9999

100100
def reset_seeds(gallery_conf, fname):
101+
import importlib
102+
importlib.reload(torch)
101103
torch.cuda.empty_cache()
102104
torch.backends.cudnn.deterministic = True
103105
torch.backends.cudnn.benchmark = False

0 commit comments

Comments
 (0)