From c201717c0435bb2d703acf67f55752c3e13f5122 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Wed, 6 Sep 2023 02:43:48 -0700 Subject: [PATCH] [fbsync] Put back disable_beta_transforms_warning and make it a noop (#7897) Summary: (Note: this ignores all push blocking failures!) Reviewed By: matteobettini Differential Revision: D48900409 fbshipit-source-id: 67646ec2775059971e8b499039ed03721c3abf47 --- 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