File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ def train(
1919 seed = None ,
2020 open_folder = True
2121):
22+ print ('Starting up...' )
23+
2224 if deeper :
2325 num_layers = 32
2426
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ def __init__(
208208 if exists (seed ):
209209 print (f'setting seed: { seed } ' )
210210 torch .manual_seed (seed )
211+ torch .cuda .manual_seed (seed )
212+ random .seed (seed )
213+ torch .backends .cudnn .deterministic = True
211214
212215 self .epochs = epochs
213216 self .iterations = iterations
@@ -270,6 +273,7 @@ def forward(self):
270273
271274 if self .open_folder :
272275 open_folder ('./' )
276+ self .open_folder = False
273277
274278 for epoch in trange (self .epochs , desc = 'epochs' ):
275279 pbar = trange (self .iterations , desc = 'iteration' )
Original file line number Diff line number Diff line change 1- __version__ = '0.2.9 '
1+ __version__ = '0.3.0 '
You can’t perform that action at this time.
0 commit comments