<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#L20-L35) |

Computes area of boxes.

    tfm.vision.iou_similarity.area(
        box
    )

B: batch_size
N: number of boxes

<br />

<br />

<br />

| ## Args ||
|---|---|
| `box` | a float Tensor with \[N, 4\], or \[B, N, 4\]. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a float Tensor with \[N\], or \[B, N\] ||

<br />