Skip to content

Commit

Permalink
Don't check runtime broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Dec 12, 2024
1 parent a6b2f48 commit 566145a
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 566145a

Please sign in to comment.