未验证 提交 8ad1cbe0 编写于 作者: M MissPenguin 提交者: GitHub

Merge pull request #557 from Sunny-wong/develop

Update dataset_traversal.py
...@@ -237,7 +237,7 @@ class SimpleReader(object): ...@@ -237,7 +237,7 @@ class SimpleReader(object):
def get_device_num(): def get_device_num():
if self.use_gpu: 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(',')) gpu_num = len(gpus.split(','))
return gpu_num return gpu_num
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册