Skip to content

Commit

Permalink
remove ops.nn.tanh
Browse files Browse the repository at this point in the history
  • Loading branch information
FayazRahman committed Jul 28, 2023
1 parent 2048b7c commit 38ae1b2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions keras_core/ops/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ def sigmoid(x):
return backend.nn.sigmoid(x)


class Tanh(Operation):
def call(self, x):
return backend.nn.tanh(x)

def compute_output_spec(self, x):
return KerasTensor(x.shape, dtype=x.dtype)


@keras_core_export(["keras_core.ops.tanh", "keras_core.ops.nn.tanh"])
def tanh(x):
if any_symbolic_tensors((x,)):
return Tanh().symbolic_call(x)
return backend.nn.tanh(x)


class Softplus(Operation):
def call(self, x):
return backend.nn.softplus(x)
Expand Down

0 comments on commit 38ae1b2

Please sign in to comment.