Skip to content

Commit 6c00915

Browse files
Relax tolerance for TestAffine::test_kernel_bounding_boxes
Summary: The following test "TestAffine::test_kernel_bounding_boxes" produce approximation errors between GPU and CPU and could fail for some random values. We are relaxing the tolerance with values inline with what is set for other tests (e.g. `test_transform_bounding_boxes_correctness`) to ensure the test is not flaky. Differential Revision: D85890420
1 parent 218d2ab commit 6c00915

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_transforms_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ def test_kernel_bounding_boxes(self, param, value, format, dtype, device):
14391439
canvas_size=bounding_boxes.canvas_size,
14401440
**{param: value},
14411441
check_scripted_vs_eager=not (param == "shear" and isinstance(value, (int, float))),
1442+
check_cuda_vs_cpu=dict(atol=1e-5, rtol=1e-5),
14421443
)
14431444

14441445
@param_value_parametrization(

0 commit comments

Comments
 (0)