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
50492d56
Unverified
Commit
50492d56
authored
May 18, 2021
by
V.E
Committed by
GitHub
May 18, 2021
Browse files
Fixing issue #2921 (#2922)
* fixing #2921 * fixing #2921
parent
c0184365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/nn/pytorch/conv/gatconv.py
python/dgl/nn/pytorch/conv/gatconv.py
+1
-1
No files found.
python/dgl/nn/pytorch/conv/gatconv.py
View file @
50492d56
...
@@ -168,7 +168,7 @@ class GATConv(nn.Module):
...
@@ -168,7 +168,7 @@ class GATConv(nn.Module):
else
:
else
:
self
.
register_buffer
(
'bias'
,
None
)
self
.
register_buffer
(
'bias'
,
None
)
if
residual
:
if
residual
:
if
self
.
_in_dst_feats
!=
out_feats
:
if
self
.
_in_dst_feats
!=
out_feats
*
num_heads
:
self
.
res_fc
=
nn
.
Linear
(
self
.
res_fc
=
nn
.
Linear
(
self
.
_in_dst_feats
,
num_heads
*
out_feats
,
bias
=
False
)
self
.
_in_dst_feats
,
num_heads
*
out_feats
,
bias
=
False
)
else
:
else
:
...
...
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