提交 20c45d69 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Prevent config.optimizer_{including,excluding,requiring} to change at runtime.

This allows to cache the default mode.
上级 648ce3da
...@@ -10,13 +10,13 @@ _logger = logging.getLogger('theano.compile.mode') ...@@ -10,13 +10,13 @@ _logger = logging.getLogger('theano.compile.mode')
AddConfigVar('optimizer_excluding', AddConfigVar('optimizer_excluding',
"When using the default mode, we will remove optimizer with that tag. Separate many tags with ':'.", "When using the default mode, we will remove optimizer with that tag. Separate many tags with ':'.",
StrParam("")) StrParam("", allow_override=False))
AddConfigVar('optimizer_including', AddConfigVar('optimizer_including',
"When using the default mode, we will add optimizer with that tag. Separate many tags with ':'.", "When using the default mode, we will add optimizer with that tag. Separate many tags with ':'.",
StrParam("")) StrParam("", allow_override=False))
AddConfigVar('optimizer_requiring', AddConfigVar('optimizer_requiring',
"When using the default mode, we will require optimizer with that tag. Separate many tags with ':'.", "When using the default mode, we will require optimizer with that tag. Separate many tags with ':'.",
StrParam("")) StrParam("", allow_override=False))
def check_equal(x, y): def check_equal(x, y):
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论