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
12f64296
Unverified
Commit
12f64296
authored
Jan 27, 2021
by
Tong He
Committed by
GitHub
Jan 27, 2021
Browse files
remove hash_func from dataset object (#2572)
Co-authored-by:
Minjie Wang
<
wmjlyjemaine@gmail.com
>
parent
8e981db9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/dgl/data/dgl_dataset.py
python/dgl/data/dgl_dataset.py
+3
-3
No files found.
python/dgl/data/dgl_dataset.py
View file @
12f64296
...
...
@@ -77,7 +77,6 @@ class DGLDataset(object):
self
.
_force_reload
=
force_reload
self
.
_verbose
=
verbose
self
.
_hash_key
=
hash_key
self
.
_hash_func
=
hashlib
.
sha1
()
self
.
_hash
=
self
.
_get_hash
()
# if no dir is provided, the default dgl download dir is used.
...
...
@@ -192,8 +191,9 @@ class DGLDataset(object):
>>> hash_value
'a770b222'
"""
self
.
_hash_func
.
update
(
str
(
self
.
_hash_key
).
encode
(
'utf-8'
))
return
self
.
_hash_func
.
hexdigest
()[:
8
]
hash_func
=
hashlib
.
sha1
()
hash_func
.
update
(
str
(
self
.
_hash_key
).
encode
(
'utf-8'
))
return
hash_func
.
hexdigest
()[:
8
]
@
property
def
url
(
self
):
...
...
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