提交 3672b24b authored 作者: Ian Goodfellow's avatar Ian Goodfellow

made DEBUG_MODE use features from std_fgraph (so that DEBUG_MODE will

disallow uncomputable ops)
上级 1699c267
......@@ -24,7 +24,8 @@ from theano.compile.function_module import (FunctionMaker,
infer_reuse_pattern,
SymbolicInputKit,
SymbolicOutput,
Supervisor)
Supervisor,
std_fgraph)
from theano.compile.mode import Mode, register_mode
AddConfigVar('DebugMode.patience',
......@@ -685,7 +686,8 @@ def _optcheck_fgraph(input_specs, output_specs, accept_inplace=False):
and fgraph.destroyers(input)))))
# If named nodes are replaced, keep the name
fgraph.extend(gof.toolbox.PreserveNames())
for feature in std_fgraph.features:
fgraph.extend(feature)
return fgraph, map(SymbolicOutput, updates), equivalence_tracker
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论