Merge pull request #557 from Sunny-wong/develop
Update dataset_traversal.py
This commit is contained in:
commit
8ad1cbe01d
|
@ -237,7 +237,7 @@ class SimpleReader(object):
|
|||
|
||||
def get_device_num():
|
||||
if self.use_gpu:
|
||||
gpus = os.environ.get("CUDA_VISIBLE_DEVICES", 1)
|
||||
gpus = os.environ.get("CUDA_VISIBLE_DEVICES", '1')
|
||||
gpu_num = len(gpus.split(','))
|
||||
return gpu_num
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue