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
10cba2f2
Unverified
Commit
10cba2f2
authored
Aug 26, 2020
by
xiang song(charlie.song)
Committed by
GitHub
Aug 26, 2020
Browse files
Add selfloop (#2105)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-68-185.ec2.internal
>
parent
283b2cfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/mxnet/test_nn.py
tests/mxnet/test_nn.py
+1
-0
No files found.
tests/mxnet/test_nn.py
View file @
10cba2f2
...
@@ -473,6 +473,7 @@ def test_nn_conv_bi(g, idtype):
...
@@ -473,6 +473,7 @@ def test_nn_conv_bi(g, idtype):
def
test_sg_conv
():
def
test_sg_conv
():
g
=
dgl
.
from_networkx
(
nx
.
erdos_renyi_graph
(
20
,
0.3
)).
to
(
F
.
ctx
())
g
=
dgl
.
from_networkx
(
nx
.
erdos_renyi_graph
(
20
,
0.3
)).
to
(
F
.
ctx
())
g
=
dgl
.
add_self_loop
(
g
)
ctx
=
F
.
ctx
()
ctx
=
F
.
ctx
()
sgc
=
nn
.
SGConv
(
5
,
2
,
2
)
sgc
=
nn
.
SGConv
(
5
,
2
,
2
)
...
...
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