Skip to content

Commit b69fa59

Browse files
committed
set numpy seed
1 parent 9a67b5c commit b69fa59

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
@@ -33,6 +33,7 @@
3333
sys.path.insert(0, os.path.abspath('./.jenkins'))
3434
import pytorch_sphinx_theme
3535
import torch
36+
import numpy
3637
import gc
3738
import glob
3839
import random
@@ -91,6 +92,7 @@ def reset_seeds(gallery_conf, fname):
9192
torch.manual_seed(42)
9293
torch.set_default_device(None)
9394
random.seed(10)
95+
numpy.random.seed(10)
9496
gc.collect()
9597

9698
sphinx_gallery_conf = {

0 commit comments

Comments
 (0)