From 9f9bd53b7e3c718eefa0093ac2f7836d696975ae Mon Sep 17 00:00:00 2001 From: samunder singh <83540902+samthakur587@users.noreply.github.com> Date: Sat, 16 Mar 2024 17:57:13 +0530 Subject: [PATCH] fix: fixed real at tf frontend (#28594) --- ivy/functional/backends/paddle/elementwise.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/ivy/functional/backends/paddle/elementwise.py b/ivy/functional/backends/paddle/elementwise.py index d066112f63143..92d812e15450d 100644 --- a/ivy/functional/backends/paddle/elementwise.py +++ b/ivy/functional/backends/paddle/elementwise.py @@ -886,22 +886,8 @@ def logaddexp2( return ivy.log2(ivy.exp2(x1) + ivy.exp2(x2)) -@with_unsupported_device_and_dtypes( - { - "2.6.0 and below": { - "cpu": ( - "int8", - "int16", - "int32", - "int64", - "uint8", - "float16", - "float32", - "float64", - "bool", - ) - } - }, +@with_supported_dtypes( + {"2.6.0 and below": ("complex",)}, backend_version, ) def real(x: paddle.Tensor, /, *, out: Optional[paddle.Tensor] = None) -> paddle.Tensor: