Skip to content

Commit

Permalink
skip flaky adjust_contrast kernel tests (pytorch#7347)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Feb 27, 2023
1 parent 6a8a3c0 commit 547dd1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/transforms_v2_kernel_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,9 @@ def sample_inputs_adjust_contrast_video():
yield ArgsKwargs(video_loader, contrast_factor=_ADJUST_CONTRAST_FACTORS[0])


# TODO: this is just temporary to make CI green for release. We should add proper tolerances after
skip_adjust_contrast_jit = TestMark(("TestKernels", "test_scripted_vs_eager"), pytest.mark.skip(reason="Test is flaky"))

KERNEL_INFOS.extend(
[
KernelInfo(
Expand All @@ -1939,11 +1942,13 @@ def sample_inputs_adjust_contrast_video():
**float32_vs_uint8_pixel_difference(2),
**cuda_vs_cpu_pixel_difference(),
},
test_marks=[skip_adjust_contrast_jit],
),
KernelInfo(
F.adjust_contrast_video,
sample_inputs_fn=sample_inputs_adjust_contrast_video,
closeness_kwargs=cuda_vs_cpu_pixel_difference(),
test_marks=[skip_adjust_contrast_jit],
),
]
)
Expand Down

0 comments on commit 547dd1d

Please sign in to comment.