Skip to content

Commit 54732a3

Browse files
committed
Format code
1 parent 7b4a4fb commit 54732a3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tensorflow_addons/losses/giou_loss.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
class GIOULoss(tf.keras.losses.Loss):
2727
"""Implements the GIOU loss function.
2828
29-
GIOU loss was first introduced in the Generalized Intersection over Union paper
30-
(https://giou.stanford.edu/GIoU.pdf). GIOU is a enhance for model which use IOU
31-
in object detection.
29+
GIOU loss was first introduced in the Generalized Intersection over Union
30+
paper (https://giou.stanford.edu/GIoU.pdf). GIOU is a enhance for model
31+
which use IOU in object detection.
3232
3333
Usage:
3434
@@ -73,7 +73,7 @@ def giou_loss(y_true, y_pred):
7373
Args
7474
y_true: true targets tensor.
7575
y_pred: predictions tensor.
76-
76+
7777
Returns:
7878
GIOU loss float `Tensor`.
7979
"""

tensorflow_addons/losses/giou_loss_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
@test_utils.run_all_in_graph_and_eager_modes
2727
class GIOULossTest(tf.test.TestCase):
28+
"""GIOU test class"""
2829
def test_config(self):
2930
gl_obj = GIOULoss(
3031
reduction=tf.keras.losses.Reduction.NONE, name='giou_loss')

0 commit comments

Comments
 (0)