Skip to content

Commit 298cfa9

Browse files
add comment
1 parent 405f31e commit 298cfa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_ops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,9 @@ def test_iou(self, actual_box1, actual_box2, dtypes, atol, expected, fmt):
15731573
@pytest.mark.parametrize("fmt", ["xyxy", "xywh", "cxcywh"])
15741574
def test_iou_jit(self, fmt):
15751575
class IoUJit(torch.nn.Module):
1576+
# We are using this intermediate class
1577+
# since torchscript does not support
1578+
# neither partial nor lambda functions for this test.
15761579
def __init__(self, fmt):
15771580
super().__init__()
15781581
self.iou = ops.box_iou

0 commit comments

Comments
 (0)