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
e4b4fcff
Unverified
Commit
e4b4fcff
authored
Aug 10, 2020
by
xiang song(charlie.song)
Committed by
GitHub
Aug 10, 2020
Browse files
hotfix (#1987)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-51-214.ec2.internal
>
parent
729ff2ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/dgl/data/reddit.py
python/dgl/data/reddit.py
+3
-0
No files found.
python/dgl/data/reddit.py
View file @
e4b4fcff
...
...
@@ -171,6 +171,9 @@ class RedditDataset(DGLBuiltinDataset):
graph_path
=
os
.
path
.
join
(
self
.
save_path
,
'dgl_graph.bin'
)
graphs
,
_
=
load_graphs
(
graph_path
)
self
.
_graph
=
graphs
[
0
]
self
.
_graph
.
ndata
[
'train_mask'
]
=
generate_mask_tensor
(
self
.
_graph
.
ndata
[
'train_mask'
].
numpy
())
self
.
_graph
.
ndata
[
'val_mask'
]
=
generate_mask_tensor
(
self
.
_graph
.
ndata
[
'val_mask'
].
numpy
())
self
.
_graph
.
ndata
[
'test_mask'
]
=
generate_mask_tensor
(
self
.
_graph
.
ndata
[
'test_mask'
].
numpy
())
self
.
_print_info
()
def
_print_info
(
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