未验证 提交 0cda9b87 编写于 作者: L littletomatodonkey 提交者: GitHub

fix cuda default value (#1051)

上级 8477aa8e
......@@ -74,7 +74,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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册