Skip to content

Commit

Permalink
Removed temporary fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Nov 7, 2023
1 parent 829a2d3 commit 7f91053
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/test_transforms_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,7 @@ def check_functional(functional, input, *args, check_scripted_smoke=True, check_

# Skip check on Windows as torch.compile does not work on Win32
if check_torch_compile_smoke and sys.platform != "win32":
# Temporary fix to catch deprectation warning
# This can be removed once https://github.com/pytorch/pytorch/pull/113023 is merged:
import warnings

with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
_check_functional_torch_compile_smoke(functional, input, *args, **kwargs)
_check_functional_torch_compile_smoke(functional, input, *args, **kwargs)


def check_functional_kernel_signature_match(functional, *, kernel, input_type):
Expand Down Expand Up @@ -4137,7 +4131,7 @@ def test_kernel_video(self):

@pytest.mark.parametrize("make_input", [make_image_tensor, make_image_pil, make_image, make_video])
def test_functional(self, make_input):
check_functional(F.equalize, make_input(), check_torch_compile_smoke=False)
check_functional(F.equalize, make_input())

@pytest.mark.parametrize(
("kernel", "input_type"),
Expand Down

0 comments on commit 7f91053

Please sign in to comment.