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
"vscode:/vscode.git/clone" did not exist on "071cba1f2bc9f856040ccebfde706ec9b2cd4434"
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
...
@@ -57,6 +57,9 @@ from dgl.data import RedditDataset
import
mxnet
as
mx
import
mxnet
as
mx
from
mxnet
import
gluon
from
mxnet
import
gluon
# Load MXNet as backend
dgl
.
load_backend
(
'mxnet'
)
# load dataset
# load dataset
data
=
RedditDataset
(
self_loop
=
True
)
data
=
RedditDataset
(
self_loop
=
True
)
train_nid
=
mx
.
nd
.
array
(
np
.
nonzero
(
data
.
train_mask
)[
0
]).
astype
(
np
.
int64
)
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