Skip to content

Commit

Permalink
Make non-strict zip strict in tensor/subtensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica committed Jul 23, 2024
1 parent 0de617f commit e6069da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytensor/tensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def basic_shape(shape, indices):
"""
res_shape = ()
for idx, n in zip(indices, shape, strict=False):
for n, idx in zip(shape[: len(indices)], indices, strict=True):
if isinstance(idx, slice):
res_shape += (slice_len(idx, n),)
elif isinstance(getattr(idx, "type", None), SliceType):
Expand Down

0 comments on commit e6069da

Please sign in to comment.