Skip to content

Commit

Permalink
fixed tensorflow.keras.activations.relu
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJay07 committed Mar 18, 2024
1 parent dc14b57 commit b86cafa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ivy/functional/frontends/tensorflow/keras/activations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ivy
import ivy.functional.frontends.tensorflow as tf_frontend
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy import with_supported_dtypes
from ivy import with_supported_dtypes, with_unsupported_dtypes


ACTIVATION_FUNCTIONS = [
Expand Down Expand Up @@ -112,6 +112,10 @@ def linear(x):
return ivy.array(x)


@with_unsupported_dtypes(
{"2.15.0 and below": ("complex",)},
"tensorflow",
)
@to_ivy_arrays_and_back
def relu(x, alpha=0.0, max_value=None, threshold=0.0):
return ivy.relu(x)
Expand Down

0 comments on commit b86cafa

Please sign in to comment.