Skip to content

Commit

Permalink
uses tf_frontedn.math.maximum rather than ivy.max
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBalloon8 committed Aug 4, 2023
1 parent 690d989 commit 6bb1d26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ivy/functional/frontends/tensorflow/raw_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,10 @@ def Svd(*, input, full_matrices=False, compute_uv=True, name=None):
def Selu(*, features, name="Selu"):
alpha = 1.6732632423543772848170429916717
scale = 1.0507009873554804934193349852946
return scale * (ivy.max(0, features) + ivy.min(0, alpha * (ivy.exp(features) - 1)))
return scale * (
tf_frontend.math.maximum(0, features)
+ tf_frontend.math.minimum(0, alpha * (ivy.exp(features) - 1))
)


Selu.supported_dtypes = {
Expand Down

0 comments on commit 6bb1d26

Please sign in to comment.