提交 d36feb21 authored 作者: Frederic's avatar Frederic

add pid macro in the theano config flag system.

上级 ec23747d
...@@ -78,7 +78,9 @@ theano_cfg = ConfigParser.SafeConfigParser( ...@@ -78,7 +78,9 @@ theano_cfg = ConfigParser.SafeConfigParser(
'LSCRATCH': os.getenv("LSCRATCH", ""), 'LSCRATCH': os.getenv("LSCRATCH", ""),
'TMPDIR': os.getenv("TMPDIR", ""), 'TMPDIR': os.getenv("TMPDIR", ""),
'TEMP': os.getenv("TEMP", ""), 'TEMP': os.getenv("TEMP", ""),
'TMP': os.getenv("TMP", "")} 'TMP': os.getenv("TMP", ""),
'PID': str(os.getpid()),
}
) )
theano_cfg.read(config_files) theano_cfg.read(config_files)
# Having a raw version of the config around as well enables us to pass # Having a raw version of the config around as well enables us to pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论