From eb874f6f6258f504907c1246d61c178a26faa958 Mon Sep 17 00:00:00 2001 From: MuhammadNizamani Date: Sat, 24 Feb 2024 10:48:44 +0500 Subject: [PATCH 1/3] fix: Ivy Failing Test: paddle - searching.where --- ivy/functional/backends/paddle/searching.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ivy/functional/backends/paddle/searching.py b/ivy/functional/backends/paddle/searching.py index f64c9c97288ba..b3bdc08e737a5 100644 --- a/ivy/functional/backends/paddle/searching.py +++ b/ivy/functional/backends/paddle/searching.py @@ -119,6 +119,9 @@ def nonzero( return res.T +@with_supported_dtypes( + {"2.6.0 and below": ("in32", "int64", "float32", "float64")}, backend_version +) def where( condition: paddle.Tensor, x1: Union[float, int, paddle.Tensor], From 3ca25fc6fd2f0a876bbfebbe57080d257d3ce72c Mon Sep 17 00:00:00 2001 From: MuhammadNizamani Date: Thu, 7 Mar 2024 10:57:22 +0500 Subject: [PATCH 2/3] fix: fixed the typo in my code --- ivy/functional/backends/paddle/searching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/functional/backends/paddle/searching.py b/ivy/functional/backends/paddle/searching.py index b3bdc08e737a5..7544156ab6775 100644 --- a/ivy/functional/backends/paddle/searching.py +++ b/ivy/functional/backends/paddle/searching.py @@ -120,7 +120,7 @@ def nonzero( @with_supported_dtypes( - {"2.6.0 and below": ("in32", "int64", "float32", "float64")}, backend_version + {"2.6.0 and below": ("int32", "int64", "float32", "float64")}, backend_version ) def where( condition: paddle.Tensor, From 71116c7a7c545b0587ff07cfc178170f77ce6929 Mon Sep 17 00:00:00 2001 From: MuhammadNizamani Date: Thu, 7 Mar 2024 12:24:31 +0500 Subject: [PATCH 3/3] fix: using all dtype expect float16 and dfloat16 --- ivy/functional/backends/paddle/searching.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ivy/functional/backends/paddle/searching.py b/ivy/functional/backends/paddle/searching.py index 7544156ab6775..9dfedd2b8f584 100644 --- a/ivy/functional/backends/paddle/searching.py +++ b/ivy/functional/backends/paddle/searching.py @@ -119,9 +119,7 @@ def nonzero( return res.T -@with_supported_dtypes( - {"2.6.0 and below": ("int32", "int64", "float32", "float64")}, backend_version -) +@with_unsupported_dtypes({"2.6.0 and below": ("bfloat16", "float16")}, backend_version) def where( condition: paddle.Tensor, x1: Union[float, int, paddle.Tensor],