Skip to content

Commit

Permalink
[FIX](loss) Add default reduction in SigmoidCrossEntropyLoss
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 25, 2022
1 parent 6c05364 commit c3460a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hourglass_tensorflow/losses/sigmoid_cross_entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@


class SigmoidCrossEntropyLoss(keras.losses.Loss):
def __init__(self, reduction=..., name=None, *args, **kwargs):
def __init__(
self, reduction=tf.keras.losses.Reduction.AUTO, name=None, *args, **kwargs
):
super().__init__(reduction, name)

def call(self, y_true, y_pred):
Expand Down

0 comments on commit c3460a5

Please sign in to comment.