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

fix gh-2091

When optimizer=None, we had a crash at Theano import time. THEANO_FLAGS=optimizer=None,device=gpu python -c 'import theano'
上级 07a20a71
......@@ -93,15 +93,17 @@ OPT_FAST_RUN = gof.Query(include=['fast_run'], exclude=exclude)
OPT_FAST_RUN_STABLE = OPT_FAST_RUN.requiring('stable')
OPT_FAST_COMPILE = gof.Query(include=['fast_compile'], exclude=exclude)
OPT_STABILIZE = gof.Query(include=['fast_run'], exclude=exclude)
OPT_NONE = gof.Query(include=[], exclude=exclude)
OPT_STABILIZE.position_cutoff = 1.5000001
OPT_FAST_RUN.name = 'OPT_FAST_RUN'
OPT_FAST_RUN_STABLE.name = 'OPT_FAST_RUN_STABLE'
OPT_FAST_COMPILE.name = 'OPT_FAST_COMPILE'
OPT_STABILIZE.name = 'OPT_STABILIZE'
OPT_NONE.name = 'OPT_NONE'
predefined_optimizers = {
None: (lambda fgraph: None),
'None': (lambda fgraph: None),
None: OPT_NONE,
'None': OPT_NONE,
'merge': gof.MergeOptimizer(),
'fast_run': OPT_FAST_RUN,
'fast_run_stable': OPT_FAST_RUN_STABLE,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论