未验证 提交 8e9eec6c 编写于 作者: L Li Jiang 提交者: GitHub

fix error with cpu version paddle in GPU machince (#299)

* fix error with cpu version paddle in the GPU envrionment.
上级 e8797bd0
......@@ -101,8 +101,9 @@ def is_gpu_available():
from paddle import fluid
if ret is True and not fluid.is_compiled_with_cuda():
logger.warning("Found non-empty CUDA_VISIBLE_DEVICES. \
But PARL found that Paddle was not complied with CUDA, which may cause issues."
)
But PARL found that Paddle was not complied with CUDA, which may cause issues. \
Thus PARL will not use GPU.")
return False
return ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册