Skip to content

Commit c161452

Browse files
committed
Remove error handling for inconsistent dimensions in _gufunc_to_out_shape
1 parent 870b900 commit c161452

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pytensor/tensor/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ def _gufunc_to_out_shape(
239239
# Prefer constants
240240
elif not isinstance(prev_size, Constant):
241241
dim_to_size[dim_name] = size
242-
elif prev_size.data != size:
243-
raise ValueError(
244-
f"Invalid signature {signature} for shapes {shapes}. "
245-
f"Dimension {dim_name} is not consistent across inputs."
246-
)
242+
247243
out_shapes = []
248244
for output_shape in output_sig:
249245
temp_list = []

0 commit comments

Comments
 (0)