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 e1a1c7f commit d5e161bCopy full SHA for d5e161b
pytensor/tensor/extra_ops.py
@@ -2129,9 +2129,7 @@ def unpack(
2129
raise ValueError("Cannot unpack an empty list of shapes.")
2130
2131
n_splits = len(packed_shapes)
2132
- split_size = [
2133
- prod(shape, no_zeros_in_input=True).astype(int) for shape in packed_shapes
2134
- ]
+ split_size = [prod(shape).astype(int) for shape in packed_shapes]
2135
unpacked_tensors = split(flat_tensor, splits_size=split_size, n_splits=n_splits)
2136
2137
return tuple(
0 commit comments