Skip to content

Commit

Permalink
Fix linting and sigmoid func
Browse files Browse the repository at this point in the history
  • Loading branch information
Frightera committed Mar 30, 2023
1 parent 0f89165 commit 3c193de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keras/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5857,7 +5857,8 @@ def binary_focal_crossentropy(
gamma: A focusing parameter, default is `2.0` as mentioned in the
reference.
from_logits: Whether `output` is expected to be a logits tensor. By
default, we consider that `output` encodes a probability distribution.
default, we consider that `output` encodes a probability
distribution.
Returns:
A tensor.
Expand Down Expand Up @@ -5897,7 +5898,7 @@ def sigmoid(x):
Returns:
A tensor.
"""
return tf.sigmoid(x)
return tf.math.sigmoid(x)


@keras_export("keras.backend.hard_sigmoid")
Expand Down

0 comments on commit 3c193de

Please sign in to comment.