Skip to content

Commit f81d194

Browse files
committed
black formatting
1 parent a3c5fc0 commit f81d194

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/vision/retinanet.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,7 @@ class RetinaNetBoxLoss(tf.losses.Loss):
750750
"""Implements Smooth L1 loss"""
751751

752752
def __init__(self, delta):
753-
super().__init__(
754-
reduction="none", name="RetinaNetBoxLoss"
755-
)
753+
super().__init__(reduction="none", name="RetinaNetBoxLoss")
756754
self._delta = delta
757755

758756
def call(self, y_true, y_pred):
@@ -771,9 +769,7 @@ class RetinaNetClassificationLoss(tf.losses.Loss):
771769
"""Implements Focal loss"""
772770

773771
def __init__(self, alpha, gamma):
774-
super().__init__(
775-
reduction="none", name="RetinaNetClassificationLoss"
776-
)
772+
super().__init__(reduction="none", name="RetinaNetClassificationLoss")
777773
self._alpha = alpha
778774
self._gamma = gamma
779775

0 commit comments

Comments
 (0)