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
9ef80a6e
Unverified
Commit
9ef80a6e
authored
Aug 22, 2023
by
Rhett Ying
Committed by
GitHub
Aug 22, 2023
Browse files
[BugFix] remove non-existent arg (#6188)
parent
e362f023
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
python/dgl/nn/pytorch/conv/gcn2conv.py
python/dgl/nn/pytorch/conv/gcn2conv.py
+1
-1
tests/python/pytorch/nn/test_nn.py
tests/python/pytorch/nn/test_nn.py
+4
-0
No files found.
python/dgl/nn/pytorch/conv/gcn2conv.py
View file @
9ef80a6e
...
@@ -276,7 +276,7 @@ class GCN2Conv(nn.Module):
...
@@ -276,7 +276,7 @@ class GCN2Conv(nn.Module):
which will come into effect when printing the model.
which will come into effect when printing the model.
"""
"""
summary
=
"in={_in_feats}"
summary
=
"in={_in_feats}"
summary
+=
",
share_weight={_share_weights},
alpha={alpha}, beta={beta}"
summary
+=
", alpha={alpha}, beta={beta}"
if
"self._bias"
in
self
.
__dict__
:
if
"self._bias"
in
self
.
__dict__
:
summary
+=
", bias={bias}"
summary
+=
", bias={bias}"
if
"self._activation"
in
self
.
__dict__
:
if
"self._activation"
in
self
.
__dict__
:
...
...
tests/python/pytorch/nn/test_nn.py
View file @
9ef80a6e
import
io
import
io
import
pickle
import
pickle
import
random
import
random
import
re
from
copy
import
deepcopy
from
copy
import
deepcopy
import
backend
as
F
import
backend
as
F
...
@@ -923,6 +924,9 @@ def test_gcn2conv_e_weight(g, idtype, bias):
...
@@ -923,6 +924,9 @@ def test_gcn2conv_e_weight(g, idtype, bias):
res
=
feat
res
=
feat
h
=
gcn2conv
(
g
,
res
,
feat
,
edge_weight
=
eweight
)
h
=
gcn2conv
(
g
,
res
,
feat
,
edge_weight
=
eweight
)
assert
h
.
shape
[
-
1
]
==
5
assert
h
.
shape
[
-
1
]
==
5
assert
re
.
match
(
re
.
compile
(
".*GCN2Conv.*in=.*, alpha=.*, beta=.*"
),
str
(
gcn2conv
)
)
@
parametrize_idtype
@
parametrize_idtype
...
...
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