提交 54713094 authored 作者: Reyhane Askari's avatar Reyhane Askari

removed check for output guard in debug mode when cycle_detection is fast

上级 dccc8e50
...@@ -2272,6 +2272,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2272,6 +2272,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
"of", len(li), "events was stable.", "of", len(li), "events was stable.",
file=sys.stderr) file=sys.stderr)
self.fgraph = fgraph self.fgraph = fgraph
if theano.config.cycle_detection == 'regular':
destroy_handler_added = False destroy_handler_added = False
for feature in fgraph._features: for feature in fgraph._features:
if isinstance(feature, gof.DestroyHandler): if isinstance(feature, gof.DestroyHandler):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论