Skip to content

Commit 2133d22

Browse files
John GibsonJohn Gibson
authored andcommitted
Working implementation through executorch test
1 parent 7e23c70 commit 2133d22

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

kernels/portable/test/test_grid_sampler_2d_executorch.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -402,14 +402,10 @@ def test_out_of_bounds_values_in_grid(self):
402402
for grid, desc in test_cases:
403403
with self.subTest(desc=desc):
404404
# Test with zeros padding (most common for out-of-bounds)
405-
try:
406-
self.run_executorch_test(
407-
input_tensor, grid, "bilinear", "zeros", False
408-
)
409-
print(f" ✓ {desc}")
410-
except Exception as e:
411-
# Special values might cause issues, which is acceptable
412-
print(f" ⚠ {desc}: {str(e)}")
405+
self.run_executorch_test(
406+
input_tensor, grid, "bilinear", "zeros", False
407+
)
408+
print(f" ✓ {desc}")
413409

414410
print("✓ Passed special value tests")
415411

0 commit comments

Comments
 (0)