From 92eb247f07a47a6ed6af61d39d305935fb2fcd76 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Wed, 10 Jan 2018 19:13:29 -0800 Subject: [PATCH] "fix stupid error" --- python/paddle/v2/fluid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/__init__.py b/python/paddle/v2/fluid/__init__.py index c163d9a92b..422aa0a5ba 100644 --- a/python/paddle/v2/fluid/__init__.py +++ b/python/paddle/v2/fluid/__init__.py @@ -58,7 +58,7 @@ def __bootstrap__(): read_env_flags = ['use_pinned_memory', 'check_nan_inf'] if core.is_compile_gpu(): - read_env_flags.append(['fraction_of_gpu_memory_to_use', 'op_sync']) + read_env_flags += ['fraction_of_gpu_memory_to_use', 'op_sync'] core.init_gflags([sys.argv[0]] + ["--tryfromenv=" + ",".join(read_env_flags)]) core.init_glog(sys.argv[0]) -- GitLab