File tree Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ def main():
38
38
if torch .cuda .device_count () > 1 and not config ['device' ] == 'cpu' :
39
39
model = nn .DataParallel (model )
40
40
logger .info (f'Using { torch .cuda .device_count ()} GPUs for prediction' )
41
- model = model .cuda ()
42
41
if torch .cuda .is_available () and not config ['device' ] == 'cpu' :
43
42
model = model .cuda ()
44
43
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ def create_trainer(config):
23
23
if torch .cuda .device_count () > 1 and not config ['device' ] == 'cpu' :
24
24
model = nn .DataParallel (model )
25
25
logger .info (f'Using { torch .cuda .device_count ()} GPUs for prediction' )
26
- model = model .cuda ()
27
26
if torch .cuda .is_available () and not config ['device' ] == 'cpu' :
28
27
model = model .cuda ()
29
28
You can’t perform that action at this time.
0 commit comments