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
c2b8af45
Unverified
Commit
c2b8af45
authored
Oct 01, 2019
by
Da Zheng
Committed by
GitHub
Oct 01, 2019
Browse files
change the backend to mxnet. (#894)
parent
3e454476
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tutorials/models/5_giant_graph/1_sampling_mx.py
tutorials/models/5_giant_graph/1_sampling_mx.py
+3
-0
No files found.
tutorials/models/5_giant_graph/1_sampling_mx.py
View file @
c2b8af45
...
...
@@ -57,6 +57,9 @@ from dgl.data import RedditDataset
import
mxnet
as
mx
from
mxnet
import
gluon
# Load MXNet as backend
dgl
.
load_backend
(
'mxnet'
)
# load dataset
data
=
RedditDataset
(
self_loop
=
True
)
train_nid
=
mx
.
nd
.
array
(
np
.
nonzero
(
data
.
train_mask
)[
0
]).
astype
(
np
.
int64
)
...
...
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