Skip to content

Commit

Permalink
Update activation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskiratsingh2000 authored Sep 13, 2023
1 parent f45af97 commit ac5eafb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ivy/functional/frontends/paddle/nn/functional/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,6 @@ def relu_(x, name=None):
return x


@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


@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
@to_ivy_arrays_and_back
def rrelu(
Expand Down Expand Up @@ -210,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)

Expand Down

0 comments on commit ac5eafb

Please sign in to comment.