It’s not included in the PyTorch tensor library, but I compute iou (jaccard index) of bounding boxes using PyTorch tensors here: https://github.com/amdegroot/ssd.pytorch/blob/master/box_utils.py#L33-L70 1.7k.