mxnet.gluon.utils.download¶
-
mxnet.gluon.utils.
download
(url, path=None, overwrite=False, sha1_hash=None, retries=5, verify_ssl=True)[source]¶ Download an given URL
- Parameters
url (str) – URL to download
path (str, optional) – Destination path to store downloaded file. By default stores to the current directory with same name as in url.
overwrite (bool, optional) – Whether to overwrite destination file if already exists.
sha1_hash (str, optional) – Expected sha1 hash in hexadecimal digits. Will ignore existing file when hash is specified but doesn’t match.
retries (integer, default 5) – The number of times to attempt the download in case of failure or non 200 return codes
verify_ssl (bool, default True) – Verify SSL certificates.
- Returns
The file path of the downloaded file.
- Return type
str