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
76ce14b7
Unverified
Commit
76ce14b7
authored
Nov 20, 2023
by
xiangyuzhi
Committed by
GitHub
Nov 20, 2023
Browse files
[Sparse] Fix example variable name (#6581)
parent
46d7b1d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
examples/sparse/sampling/graphsage.py
examples/sparse/sampling/graphsage.py
+6
-6
No files found.
examples/sparse/sampling/graphsage.py
View file @
76ce14b7
...
@@ -42,15 +42,15 @@ class SAGEConv(nn.Module):
...
@@ -42,15 +42,15 @@ class SAGEConv(nn.Module):
def
__init__
(
def
__init__
(
self
,
self
,
in_
feats
,
in_
size
,
out_
feats
,
out_
size
,
):
):
super
(
SAGEConv
,
self
).
__init__
()
super
(
SAGEConv
,
self
).
__init__
()
self
.
_in_src_feats
,
self
.
_in_dst_feats
=
in_
feats
,
in_feats
self
.
_in_src_feats
,
self
.
_in_dst_feats
=
in_
size
,
in_size
self
.
_out_
feats
=
out_
feats
self
.
_out_
size
=
out_
size
self
.
fc_neigh
=
nn
.
Linear
(
self
.
_in_src_feats
,
out_
feats
,
bias
=
False
)
self
.
fc_neigh
=
nn
.
Linear
(
self
.
_in_src_feats
,
out_
size
,
bias
=
False
)
self
.
fc_self
=
nn
.
Linear
(
self
.
_in_dst_feats
,
out_
feats
,
bias
=
True
)
self
.
fc_self
=
nn
.
Linear
(
self
.
_in_dst_feats
,
out_
size
,
bias
=
True
)
self
.
reset_parameters
()
self
.
reset_parameters
()
def
reset_parameters
(
self
):
def
reset_parameters
(
self
):
...
...
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