Skip to content

Commit 678b88d

Browse files
add tests
1 parent b89dc61 commit 678b88d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/test_transforms_v2.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7022,12 +7022,18 @@ def test_parallelogram_to_bounding_boxes(input_size, device):
70227022
# / / -> / /
70237023
# 4-3 4 /
70247024
# 3
7025+
#
7026+
# 1
7027+
# 1-2 \ 2
7028+
# \ \ -> \ \
7029+
# 4-3 4 \
7030+
# 3
70257031
parallelogram = torch.tensor(
7026-
[[0, 4, 3, 1, 5, 1, 2, 4]],
7032+
[[0, 4, 3, 1, 5, 1, 2, 4], [0, 1, 2, 1, 5, 4, 3, 4]],
70277033
dtype=torch.float32,
70287034
)
70297035
expected = torch.tensor(
7030-
[[0, 4, 4, 0, 5, 1, 1, 5]],
7036+
[[0, 4, 4, 0, 5, 1, 1, 5], [0, 1, 1, 0, 5, 4, 3, 4]],
70317037
dtype=torch.float32,
70327038
)
70337039

0 commit comments

Comments
 (0)