<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/iou_similarity.py#L75-L97) |

Computes pairwise intersection-over-union between box collections.

    tfm.vision.iou_similarity.iou(
        gt_boxes, boxes
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `gt_boxes` | a float Tensor with \[N, 4\]. |
| `boxes` | a float Tensor with \[M, 4\]. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a Tensor with shape \[N, M\] representing pairwise iou scores. ||

<br />