This commit is contained in:
Glenn Jocher 2019-09-26 12:54:09 +02:00
parent 163025649a
commit cf462429d4
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ def init_seeds(seed=0):
def select_device(device='', apex=False):
# device = '' or 'cpu' or '0' or '0,1'
if device.lower() == 'cpu':
pass
elif device: # Set environment variable if device is specified