downloadο
- class dgl.data.utils.download(url, path=None, overwrite=True, sha1_hash=None, retries=5, verify_ssl=True, log=True)[source]ο
Bases:
Download a given URL.
Codes borrowed from mxnet/gluon/utils.py
- Parameters:
url (str) β URL to download.
path (str, optional) β Destination path to store downloaded file. By default stores to the current directory with the same name as in url.
overwrite (bool, optional) β Whether to overwrite the destination file if it already exists. By default always overwrites the downloaded file.
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 downloading in case of failure or non 200 return codes.
verify_ssl (bool, default True) β Verify SSL certificates.
log (bool, default True) β Whether to print the progress for download
- Returns:
The file path of the downloaded file.
- Return type: