From e928537042dc2212b369bf981345420170e7b7a4 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Tue, 29 Aug 2023 15:30:46 +0100 Subject: [PATCH] Put back disable_beta_transforms_warning and make it a noop (#7897) --- torchvision/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/torchvision/__init__.py b/torchvision/__init__.py index e44301c1a04..d3142028e80 100644 --- a/torchvision/__init__.py +++ b/torchvision/__init__.py @@ -95,3 +95,9 @@ def get_video_backend(): def _is_tracing(): return torch._C._get_tracing_state() + + +def disable_beta_transforms_warning(): + # Noop, only exists to avoid breaking existing code. + # See https://github.com/pytorch/vision/issues/7896 + pass