提交 e5bc59a3 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove old warning in configparser.

上级 f70fde64
...@@ -22,13 +22,6 @@ class TheanoConfigWarning(Warning): ...@@ -22,13 +22,6 @@ class TheanoConfigWarning(Warning):
warnings.warn(message, cls, stacklevel=stacklevel + 3) warnings.warn(message, cls, stacklevel=stacklevel + 3)
warn = classmethod(warn) warn = classmethod(warn)
# Check for deprecated environment variables
for key in os.environ:
if key.startswith("THEANO"):
if key not in ("THEANO_FLAGS", "THEANORC"):
TheanoConfigWarning.warn(
"Ignoring deprecated environment variable %s" % key)
THEANO_FLAGS = os.getenv("THEANO_FLAGS", "") THEANO_FLAGS = os.getenv("THEANO_FLAGS", "")
# The THEANO_FLAGS environment variable should be a list of comma-separated # The THEANO_FLAGS environment variable should be a list of comma-separated
# [section.]option=value entries. If the section part is omitted, there should # [section.]option=value entries. If the section part is omitted, there should
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论