Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
31911834
Unverified
Commit
31911834
authored
Jan 07, 2020
by
VoVAllen
Committed by
GitHub
Jan 07, 2020
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
docs/source/env_var.rst
docs/source/env_var.rst
+3
-3
python/dgl/data/utils.py
python/dgl/data/utils.py
+1
-1
No files found.
docs/source/env_var.rst
View file @
31911834
...
...
@@ -13,11 +13,11 @@ Backend Options
Data Repository
---------------
* ``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.
* Suggested values:
* 'https://
s3.us-east-2.amazonaws.com/
dgl.ai/': DGL repo for
U.S
.
* 'https://
s3-ap-southeast
-1.amazonaws.com
/dgl.ai.asia
/': DGL repo for
Asi
a
* 'https://
data.
dgl.ai/': DGL repo for
Global Region
.
* 'https://
dgl-data.s3.cn-north
-1.amazonaws.com
.cn
/': DGL repo for
Mainland Chin
a
* ``DGL_DOWNLOAD_DIR``:
* Values: String (default="${HOME}/.dgl")
* The local directory to cache the downloaded data.
python/dgl/data/utils.py
View file @
31911834
...
...
@@ -35,7 +35,7 @@ def loadtxt(path, delimiter, dtype=None):
def
_get_dgl_url
(
file_url
):
"""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
)
if
repo_url
[
-
1
]
!=
'/'
:
repo_url
=
repo_url
+
'/'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment