diff --git a/ivy/functional/backends/paddle/elementwise.py b/ivy/functional/backends/paddle/elementwise.py index bb8eddb8be644..68ea20c637437 100644 --- a/ivy/functional/backends/paddle/elementwise.py +++ b/ivy/functional/backends/paddle/elementwise.py @@ -15,8 +15,10 @@ def _elementwise_helper(x1, x2): if (not hasattr(x1, "dtype") or not hasattr(x2, "dtype")) or (x1.dtype != x2.dtype): x1, x2 = ivy.promote_types_of_inputs(x1, x2) - if x1.shape != x2.shape: - x1, x2 = paddle_backend.broadcast_arrays(x1, x2) + # the following was needed in versions <=2.4.2 because most functions didn't + # accept 0D inputs along other inputs + # if x1.shape != x2.shape: + # x1, x2 = paddle_backend.broadcast_arrays(x1, x2) return x1, x2, x1.dtype