We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc91c4e commit 82dd165Copy full SHA for 82dd165
python/paddle/v2/fluid/__init__.py
@@ -36,7 +36,8 @@ def __read_gflags_from_env__():
36
read_env_flags = ['use_pinned_memory']
37
if core.is_compile_gpu():
38
read_env_flags.append('fraction_of_gpu_memory_to_use')
39
- core.init_gflags(sys.argv + ["--tryfromenv=" + ",".join(read_env_flags)])
+ core.init_gflags([sys.argv[0]] +
40
+ ["--tryfromenv=" + ",".join(read_env_flags)])
41
42
43
__read_gflags_from_env__()
0 commit comments