Closed
Description
🐛 Bug
================================== FAILURES ===================================
___________________________ NMSTester.test_nms_cuda ___________________________
self = <test_ops.NMSTester testMethod=test_nms_cuda>
@unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
def test_nms_cuda(self):
err_msg = 'NMS incompatible between CPU and CUDA for IoU={}'
for iou in [0.2, 0.5, 0.8]:
boxes, scores = self._create_tensors_with_iou(1000, iou)
r_cpu = ops.nms(boxes, scores, iou)
r_cuda = ops.nms(boxes.cuda(), scores.cuda(), iou)
> self.assertTrue(torch.allclose(r_cpu, r_cuda.cpu()), err_msg.format(iou))
E RuntimeError: The size of tensor a (461) must match the size of tensor b (460) at non-singleton dimension 0
test\test_ops.py:403: RuntimeError