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
dca2580b
Commit
dca2580b
authored
Nov 27, 2019
by
shizhediao
Committed by
Mufei Li
Nov 27, 2019
Browse files
fix minor error: GCNLayerSAGE->GraphSAGELayer (#1010)
fix minor error: GCNLayerSAGE->GraphSAGELayer
parent
ead64de9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/pytorch/cluster_gcn/modules.py
examples/pytorch/cluster_gcn/modules.py
+3
-3
No files found.
examples/pytorch/cluster_gcn/modules.py
View file @
dca2580b
...
...
@@ -78,15 +78,15 @@ class GraphSAGE(nn.Module):
self
.
layers
=
nn
.
ModuleList
()
# input layer
self
.
layers
.
append
(
G
CNLayerSAGE
(
in_feats
,
n_hidden
,
activation
=
activation
,
self
.
layers
.
append
(
G
raphSAGELayer
(
in_feats
,
n_hidden
,
activation
=
activation
,
dropout
=
dropout
,
use_pp
=
use_pp
,
use_lynorm
=
True
))
# hidden layers
for
i
in
range
(
n_layers
-
1
):
self
.
layers
.
append
(
G
CNLayerSAGE
(
n_hidden
,
n_hidden
,
activation
=
activation
,
dropout
=
dropout
,
G
raphSAGELayer
(
n_hidden
,
n_hidden
,
activation
=
activation
,
dropout
=
dropout
,
use_pp
=
False
,
use_lynorm
=
True
))
# output layer
self
.
layers
.
append
(
G
CNLayerSAGE
(
n_hidden
,
n_classes
,
activation
=
None
,
self
.
layers
.
append
(
G
raphSAGELayer
(
n_hidden
,
n_classes
,
activation
=
None
,
dropout
=
dropout
,
use_pp
=
False
,
use_lynorm
=
False
))
def
forward
(
self
,
g
):
...
...
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