Skip to content

Commit 89f8db6

Browse files
authored
Add comments (#4072)
1 parent 05f91a6 commit 89f8db6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

torchvision/models/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Don't remove this file and don't change the imports of load_state_dict_from_url
2+
# from other files. We need this so that we can swap load_state_dict_from_url with
3+
# a custom internal version in fbcode.
14
try:
25
from torch.hub import load_state_dict_from_url
36
except ImportError:

0 commit comments

Comments
 (0)