Skip to content

Commit 3c193de

Browse files
committed
Fix linting and sigmoid func
1 parent 0f89165 commit 3c193de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

keras/backend.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5857,7 +5857,8 @@ def binary_focal_crossentropy(
58575857
gamma: A focusing parameter, default is `2.0` as mentioned in the
58585858
reference.
58595859
from_logits: Whether `output` is expected to be a logits tensor. By
5860-
default, we consider that `output` encodes a probability distribution.
5860+
default, we consider that `output` encodes a probability
5861+
distribution.
58615862
58625863
Returns:
58635864
A tensor.
@@ -5897,7 +5898,7 @@ def sigmoid(x):
58975898
Returns:
58985899
A tensor.
58995900
"""
5900-
return tf.sigmoid(x)
5901+
return tf.math.sigmoid(x)
59015902

59025903

59035904
@keras_export("keras.backend.hard_sigmoid")

0 commit comments

Comments
 (0)