Skip to content

Commit 26e3473

Browse files
authored
[FBcode->GH] Added url to class mapping logic to manifold download (#3864)
Reviewed By: fmassa Differential Revision: D28537606 fbshipit-source-id: beaf15f4e38a7d986ef26587383aa2aee3e48952
1 parent 6a54301 commit 26e3473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/datasets/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def _download_file_from_remote_location(fpath: str) -> None:
1+
def _download_file_from_remote_location(fpath: str, url: str) -> None:
22
pass
33

44

torchvision/datasets/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def download_url(
123123
return
124124

125125
if _is_remote_location_available():
126-
_download_file_from_remote_location(fpath)
126+
_download_file_from_remote_location(fpath, url)
127127
else:
128128
# expand redirect chain if needed
129129
url = _get_redirect_url(url, max_hops=max_redirect_hops)

0 commit comments

Comments
 (0)