From 208ff257918b81db4f403238aec8e769d268a68d Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Wed, 16 Jun 2021 09:02:38 +0100 Subject: [PATCH] Add comments --- torchvision/models/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/torchvision/models/utils.py b/torchvision/models/utils.py index 638ef07cd85..132ccff2598 100644 --- a/torchvision/models/utils.py +++ b/torchvision/models/utils.py @@ -1,3 +1,6 @@ +# Don't remove this file and don't change the imports of load_state_dict_from_url +# from other files. We need this so that we can swap load_state_dict_from_url with +# a custom internal version in fbcode. try: from torch.hub import load_state_dict_from_url except ImportError: