提交 143c2f97 authored 作者: Frederic's avatar Frederic

Make ShapeFeature report the error to the user, but continue the execution.

上级 de54f161
...@@ -1176,7 +1176,7 @@ class ShapeFeature(object): ...@@ -1176,7 +1176,7 @@ class ShapeFeature(object):
continue continue
if shpnode.outputs[0] in theano.gof.graph.ancestors([repl]): if shpnode.outputs[0] in theano.gof.graph.ancestors([repl]):
raise AssertionError( raise InconsistencyError(
"This substitution would insert a cycle in the graph:" "This substitution would insert a cycle in the graph:"
"node: %s, i: %i, r: %s, new_r: %s" "node: %s, i: %i, r: %s, new_r: %s"
% (node, i, r, new_r)) % (node, i, r, new_r))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论