提交 78b49980 编写于 作者: C chenguowei01

update utils.py

上级 c098364e
...@@ -29,15 +29,7 @@ def seconds_to_hms(seconds): ...@@ -29,15 +29,7 @@ def seconds_to_hms(seconds):
return hms_str return hms_str
def setting_environ_flags():
if "CUDA_VISIBLE_DEVICES" in os.environ:
if os.environ["CUDA_VISIBLE_DEVICES"].count("-1") > 0:
os.environ["CUDA_VISIBLE_DEVICES"] = ""
def get_environ_info(): def get_environ_info():
setting_environ_flags()
import paddle.fluid as fluid
info = dict() info = dict()
info['place'] = 'cpu' info['place'] = 'cpu'
info['num'] = int(os.environ.get('CPU_NUM', 1)) info['num'] = int(os.environ.get('CPU_NUM', 1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册