提交 73dfccfb authored 作者: Frederic Bastien's avatar Frederic Bastien

r_shape can be None

上级 d18af187
...@@ -1169,7 +1169,9 @@ class ShapeFeature(object): ...@@ -1169,7 +1169,9 @@ class ShapeFeature(object):
# Merge other_shape with r_shape, giving the priority to other_shape # Merge other_shape with r_shape, giving the priority to other_shape
merged_shape = [] merged_shape = []
for i, ps in enumerate(other_shape): for i, ps in enumerate(other_shape):
if (ps.owner and if r_shape is None and other_shape:
merged_shape.append(other_shape[i])
elif (ps.owner and
isinstance(getattr(ps.owner, 'op', None), Shape_i) and isinstance(getattr(ps.owner, 'op', None), Shape_i) and
ps.owner.op.i == i and ps.owner.op.i == i and
ps.owner.inputs[0] in (r, other_r)): ps.owner.inputs[0] in (r, other_r)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论