File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 22
22
"duration" : 320 ,
23
23
"needs" : " gpu.nvidia.small.multi"
24
24
},
25
+ "beginner_source/blitz/data_parallel_tutorial.py" : {
26
+ "needs" : " gpu.nvidia.small.multi"
27
+ },
25
28
"intermediate_source/model_parallel_tutorial.py" : {
26
29
"needs" : " gpu.nvidia.small.multi"
27
30
},
Original file line number Diff line number Diff line change 33
33
sys .path .insert (0 , os .path .abspath ('./.jenkins' ))
34
34
import pytorch_sphinx_theme
35
35
import torch
36
+ import numpy
37
+ import gc
36
38
import glob
37
39
import random
38
40
import shutil
@@ -91,6 +93,8 @@ def reset_seeds(gallery_conf, fname):
91
93
torch .manual_seed (42 )
92
94
torch .set_default_device (None )
93
95
random .seed (10 )
96
+ numpy .random .seed (10 )
97
+ gc .collect ()
94
98
95
99
sphinx_gallery_conf = {
96
100
'examples_dirs' : ['beginner_source' , 'intermediate_source' ,
You can’t perform that action at this time.
0 commit comments