Skip to content

Commit

Permalink
Fix bug in local_reshape_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica authored and ricardoV94 committed Jul 3, 2024
1 parent 5c8afae commit bf73f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytensor/tensor/rewriting/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def f(fgraph, node):
# constant value... but in the meantime, better not apply this
# rewrite.
if rval.type.ndim == node.outputs[0].type.ndim and all(
s1 == s1
s1 == s2
for s1, s2 in zip(rval.type.shape, node.outputs[0].type.shape)
if s1 == 1 or s2 == 1
):
Expand Down

0 comments on commit bf73f8a

Please sign in to comment.