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
0cf99be3
Unverified
Commit
0cf99be3
authored
Sep 09, 2020
by
xiang song(charlie.song)
Committed by
GitHub
Sep 09, 2020
Browse files
hotfix (#2163)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-56-220.ec2.internal
>
parent
101dc0de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/dgl/data/tu.py
python/dgl/data/tu.py
+2
-0
No files found.
python/dgl/data/tu.py
View file @
0cf99be3
...
...
@@ -323,6 +323,8 @@ class TUDataset(DGLBuiltinDataset):
delimiter
=
','
).
astype
(
int
)
if
'label'
in
filename
:
data
=
F
.
tensor
(
self
.
_idx_from_zero
(
data
))
else
:
data
=
F
.
tensor
(
data
)
getattr
(
g
,
field_name
[
0
])[
field_name
[
1
]]
=
data
except
IOError
:
pass
...
...
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