提交 731e2d2f authored 作者: James Bergstra's avatar James Bergstra

Merge pull request #184 from nouiz/fix_graph_cycle

In the shape feature, return to the old priority when we update the shape
......@@ -929,10 +929,9 @@ class ShapeFeature(object):
# update_shape suppose that r and new_r are in shape_of.
self.init_r(new_r)
# This tells us that r and new_r must have the same shape
# if we didn't know that the shapes are related, now we do.
# We should give priority to new_r, so we put it last.
self.update_shape(r, new_r)
# This tells us that r and new_r must have the same shape if
# we didn't know that the shapes are related, now we do.
self.update_shape(new_r, r)
# change_input happens in two cases:
# 1) we are trying to get rid of r, or
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论