Skip to content

Commit

Permalink
Make zip strict
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 21, 2024
1 parent a14cb2b commit 9d81ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytensor/tensor/random/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def explicit_expand_dims(
"""Introduce explicit expand_dims in RV parameters that are implicitly broadcasted together and/or by size."""

batch_dims = [
param.type.ndim - ndim_param for param, ndim_param in zip(params, ndim_params)
param.type.ndim - ndim_param
for param, ndim_param in zip(params, ndim_params, strict=True)
]

if size_length is not None:
Expand Down

0 comments on commit 9d81ab4

Please sign in to comment.