GIoU loss was first introduced in the [Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression](https://giou.stanford.edu/GIoU.pdf). GIoU is an enhancement for models which use IoU in object detection.
loss_giou(
mode = "giou",
reduction = tf$keras$losses$Reduction$AUTO,
name = "giou_loss"
)
one of ['giou', 'iou'], decided to calculate GIoU or IoU loss.
(Optional) Type of tf$keras$losses$Reduction to apply. Default value is SUM_OVER_BATCH_SIZE.
A name for the operation (optional).
GIoU loss float `Tensor`.