Skip to content

Commit

Permalink
Readd bcast check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Schweer authored and Ch0ronomato committed Jan 26, 2025
1 parent cb43d9a commit b627684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytensor/link/pytorch/dispatch/elemwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def check_special_scipy(func_name):
# torch can handle this scalar
# broadcast, we'll let it.
def elemwise_fn(*inputs):
# Elemwise._check_runtime_broadcast(node, inputs)
Elemwise._check_runtime_broadcast(node, inputs)
return base_fn(*inputs)

elif isinstance(scalar_op, ScalarLoop):
Expand All @@ -41,7 +41,7 @@ def elemwise_fn(*inputs):
else:

def elemwise_fn(*inputs):
# Elemwise._check_runtime_broadcast(node, inputs)
Elemwise._check_runtime_broadcast(node, inputs)
broadcast_inputs = torch.broadcast_tensors(*inputs)
ufunc = base_fn
for _ in range(broadcast_inputs[0].dim()):
Expand Down

0 comments on commit b627684

Please sign in to comment.