Unverified Commit 31911834 authored by VoVAllen's avatar VoVAllen Committed by GitHub
Browse files

[Dataset] Change download repo link to https://data.dgl.ai (CDN) (#1175)

* change download link to cdn

* Update env_var.rst
parent 38d292e5
...@@ -13,11 +13,11 @@ Backend Options ...@@ -13,11 +13,11 @@ Backend Options
Data Repository Data Repository
--------------- ---------------
* ``DGL_REPO``: * ``DGL_REPO``:
* Values: String (default='https://s3.us-east-2.amazonaws.com/dgl.ai/') * Values: String (default='https://data.dgl.ai/')
* The repository url to be used for DGL datasets and pre-trained models. * The repository url to be used for DGL datasets and pre-trained models.
* Suggested values: * Suggested values:
* 'https://s3.us-east-2.amazonaws.com/dgl.ai/': DGL repo for U.S. * 'https://data.dgl.ai/': DGL repo for Global Region.
* 'https://s3-ap-southeast-1.amazonaws.com/dgl.ai.asia/': DGL repo for Asia * 'https://dgl-data.s3.cn-north-1.amazonaws.com.cn/': DGL repo for Mainland China
* ``DGL_DOWNLOAD_DIR``: * ``DGL_DOWNLOAD_DIR``:
* Values: String (default="${HOME}/.dgl") * Values: String (default="${HOME}/.dgl")
* The local directory to cache the downloaded data. * The local directory to cache the downloaded data.
...@@ -35,7 +35,7 @@ def loadtxt(path, delimiter, dtype=None): ...@@ -35,7 +35,7 @@ def loadtxt(path, delimiter, dtype=None):
def _get_dgl_url(file_url): def _get_dgl_url(file_url):
"""Get DGL online url for download.""" """Get DGL online url for download."""
dgl_repo_url = 'https://s3.us-east-2.amazonaws.com/dgl.ai/' dgl_repo_url = 'https://data.dgl.ai/'
repo_url = os.environ.get('DGL_REPO', dgl_repo_url) repo_url = os.environ.get('DGL_REPO', dgl_repo_url)
if repo_url[-1] != '/': if repo_url[-1] != '/':
repo_url = repo_url + '/' repo_url = repo_url + '/'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment