Skip to content

Commit a0f3e1f

Browse files
committed
tests: add test for interpolation corner case
1 parent daad20e commit a0f3e1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_primitives.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ def test_roll(shift: tuple[int, int, int, int], backend: str):
150150

151151
@pytest.mark.parametrize("mode", ["bilinear", "bicubic"])
152152
@pytest.mark.parametrize("align_corners", [True, False])
153-
@pytest.mark.parametrize("size", ["small", "large"])
153+
@pytest.mark.parametrize("size", ["one", "small", "large"])
154154
@pytest.mark.parametrize("scale", [0.6, 2.0])
155155
@pytest.mark.parametrize("backend", ["cpu", "vulkan"])
156156
def test_interpolate(mode: str, align_corners: bool, size: str, scale: float, backend: str):
157157
b, c, h, w = {
158+
"one": (1, 2, 1, 3),
158159
"small": (1, 3, 2, 3),
159160
"large": (4, 19, 20, 30),
160161
}[size]

0 commit comments

Comments
 (0)