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 74efc96 commit 2ba2647Copy full SHA for 2ba2647
pytensor/tensor/basic.py
@@ -527,7 +527,7 @@ def get_underlying_scalar_constant_value(
527
grandparent.owner.op, Unbroadcast
528
):
529
ggp_shape = grandparent.owner.inputs[0].type.shape
530
- l = [s1 == 1 or s2 == 1 for s1, s2 in zip(ggp_shape, gp_shape)]
+ l = [get_underlying_scalar_constant_value(s) for s in ggp_shape]
531
gp_shape = tuple(l)
532
533
if not (idx < ndim):
0 commit comments