diff --git a/ivy/functional/frontends/paddle/nn/functional/activation.py b/ivy/functional/frontends/paddle/nn/functional/activation.py index 9e774211febc6..6a084eb979a19 100644 --- a/ivy/functional/frontends/paddle/nn/functional/activation.py +++ b/ivy/functional/frontends/paddle/nn/functional/activation.py @@ -201,6 +201,15 @@ def selu( return ivy.astype(arr, x.dtype) +@with_supported_dtypes({"2.4.2 and below": ("float32", "float64")}, "paddle") +@to_ivy_arrays_and_back +def sigmoid(x, dtype=None, name=None): + x = ivy.astype(x, dtype) if dtype else x + ret = ivy.sigmoid(x) + ret = ivy.astype(ret, dtype) if dtype else ret + return ret + + def silu(x, name=None): return ivy.silu(x) diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py index c581e3b0796ee..9ef2b83a9a4f2 100644 --- a/ivy/functional/frontends/paddle/tensor/math.py +++ b/ivy/functional/frontends/paddle/tensor/math.py @@ -54,3 +54,8 @@ def sqrt_(x, name=None): @to_ivy_arrays_and_back def subtract_(x, y, name=None): return ivy.inplace_update(x, subtract(x, y)) + +@with_unsupported_dtypes({"2.5.0 and below": ("float16", "bfloat16")}, "paddle") +@to_ivy_arrays_and_back +def increment(x, name=None): + return ivy.inplace_update(x,increment(x))