Skip to content

Commit 289ddb4

Browse files
committed
change broadcasting behaviour
1 parent f4de2fd commit 289ddb4

File tree

7 files changed

+480
-232
lines changed

7 files changed

+480
-232
lines changed

pytensor/tensor/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def get_scalar_constant_value(
396396
for i in v.owner.inputs
397397
]
398398
ret = [[None]]
399-
v.owner.op.perform(v.owner, const, ret)
399+
v.owner.op.scalar_op.perform(v.owner, const, ret)
400400
return np.asarray(ret[0][0].copy())
401401
elif (
402402
isinstance(v.owner.op, pytensor.tensor.subtensor.Subtensor)

0 commit comments

Comments
 (0)