def compute_max_iou_gt(ious):
    '\n    For each GT, find the anchor with the largest IOU.\n    Args:\n        ious (Tensor, float32): shape[B, n, L], n: num_gts, L: num_anchors\n    Returns:\n        is_max_iou (Tensor, float32): shape[B, n, L], value=1. means selected\n    '
    num_anchors = ious.shape[(- 1)]
    max_iou_index = ious.argmax(axis=(- 1))
    is_max_iou = F.one_hot(max_iou_index, num_anchors)
    return is_max_iou.astype(ious.dtype)
For each GT, find the anchor with the largest IOU.
Args:
    ious (Tensor, float32): shape[B, n, L], n: num_gts, L: num_anchors
Returns:
    is_max_iou (Tensor, float32): shape[B, n, L], value=1. means selected
def compute_max_iou_gt(ious):
    '\n    For each GT, find the anchor with the largest IOU.\n    Args:\n        ious (Tensor, float32): shape[B, n, L], n: num_gts, L: num_anchors\n    Returns:\n        is_max_iou (Tensor, float32): shape[B, n, L], value=1. means selected\n    '
    num_anchors = ious.shape[(- 1)]
    max_iou_index = ious.argmax(axis=(- 1))
    is_max_iou = F.one_hot(max_iou_index, num_anchors)
    return is_max_iou.astype(ious.dtype)