Repository: ivy-llc/ivy
Pull request: All paddle frontend bug fix
Close #17659 

Problem statement:
[Bug]: 'all' function bug in paddle frontend
### Bug Explanation

It's supposed to take tensor of bool but is taking float in the current implementation.

### Steps to Reproduce Bug

By comparing with paddle docs

### Environment

Windows 11 using Pycharm and Docker

### Ivy Version

Latest

### Backend

- [ ] NumPy
- [ ] TensorFlow
- [ ] PyTorch
- [ ] JAX

### Device

_No response_

Hints from issue discussion:

Commit message: all function bug fix

Patch to review:
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index 43af1bc5c0e13..dd49fd4ba7ed5 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -195,9 +195,9 @@ def multiply(self, y, name=None):
     def isfinite(self, name=None):
         return ivy.isfinite(self._ivy_array)
 
-    @with_supported_dtypes({"2.5.0 and below": ("float16", "bfloat16")}, "paddle")
-    def all(self, axis=None, keepdim=False, dtype=None, name=None):
-        return ivy.all(self.ivy_array, axis=axis, keepdims=keepdim, dtype=dtype)
+    @with_supported_dtypes({"2.5.0 and below": "bool"}, "paddle")
+    def all(self, axis=None, keepdim=False, name=None):
+        return ivy.all(self.ivy_array, axis=axis, keepdims=keepdim)
 
     @with_supported_dtypes({"2.4.2 and below": ("float16", "bfloat16")}, "paddle")
     def allclose(self, other, rtol=1e-05, atol=1e-08, equal_nan=False, name=None):
diff --git a/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py b/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py
index 368498d1f89f9..a7f437b56764d 100644
--- a/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py
+++ b/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py
@@ -921,7 +921,7 @@ def test_paddle_instance_multiply(
     init_tree="paddle.to_tensor",
     method_name="all",
     dtype_x_axis=helpers.dtype_values_axis(
-        available_dtypes=st.one_of(helpers.get_dtypes("float")),
+        available_dtypes=helpers.get_dtypes("bool"),
         min_axis=-1,
         max_axis=0,
         min_num_dims=1,


Code review comments:
diff_hunk: @@ -195,9 +195,9 @@ def multiply(self, y, name=None):
     def isfinite(self, name=None):
         return ivy.isfinite(self._ivy_array)
 
-    @with_supported_dtypes({"2.5.0 and below": ("float16", "bfloat16")}, "paddle")
-    def all(self, axis=None, keepdim=False, dtype=None, name=None):
-        return ivy.all(self.ivy_array, axis=axis, keepdims=keepdim, dtype=dtype)
+    @with_supported_dtypes({"2.5.0 and below": "bool"}, "paddle")
path: ivy/functional/frontends/paddle/tensor/tensor.py
text: @user1:
No need to add this, since only bools are generated by the test.