We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14cb2b commit 9d81ab4Copy full SHA for 9d81ab4
pytensor/tensor/random/utils.py
@@ -129,7 +129,8 @@ def explicit_expand_dims(
129
"""Introduce explicit expand_dims in RV parameters that are implicitly broadcasted together and/or by size."""
130
131
batch_dims = [
132
- param.type.ndim - ndim_param for param, ndim_param in zip(params, ndim_params)
+ param.type.ndim - ndim_param
133
+ for param, ndim_param in zip(params, ndim_params, strict=True)
134
]
135
136
if size_length is not None:
0 commit comments