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 7dda3fa commit f45af97
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ivy/functional/frontends/paddle/nn/functional/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ def relu6(x, name=None):
return ivy.relu6(x)


@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
@to_ivy_arrays_and_back
def relu_(x, name=None):
ret = ivy.relu(x)
ivy.inplace_update(x, ret)
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):
Expand All @@ -145,14 +153,6 @@ def sigmoid(x, dtype=None, name=None):
return ret


@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
@to_ivy_arrays_and_back
def relu_(x, name=None):
ret = ivy.relu(x)
ivy.inplace_update(x, ret)
return x


@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
@to_ivy_arrays_and_back
def rrelu(
Expand Down

0 comments on commit f45af97

Please sign in to comment.