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
db78fac5
Unverified
Commit
db78fac5
authored
Nov 09, 2021
by
Shaked Brody
Committed by
GitHub
Nov 09, 2021
Browse files
Update gatv2conv.py doc (#3486)
parent
fe6e01ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python/dgl/nn/pytorch/conv/gatv2conv.py
python/dgl/nn/pytorch/conv/gatv2conv.py
+4
-4
No files found.
python/dgl/nn/pytorch/conv/gatv2conv.py
View file @
db78fac5
...
@@ -20,16 +20,16 @@ class GATv2Conv(nn.Module):
...
@@ -20,16 +20,16 @@ class GATv2Conv(nn.Module):
over an input signal.
over an input signal.
.. math::
.. math::
h_i^{(l+1)} = \sum_{j\in \mathcal{N}(i)} \alpha_{i
,
j} W^{(l)}_{right} h_j^{(l)}
h_i^{(l+1)} = \sum_{j\in \mathcal{N}(i)} \alpha_{ij
}^{(l)
} W^{(l)}_{right} h_j^{(l)}
where :math:`\alpha_{ij}` is the attention score bewteen node :math:`i` and
where :math:`\alpha_{ij}` is the attention score bewteen node :math:`i` and
node :math:`j`:
node :math:`j`:
.. math::
.. math::
\alpha_{ij}^{
l
} &= \mathrm{softmax_i} (e_{ij}^{
l
})
\alpha_{ij}^{
(l)
} &= \mathrm{softmax_i} (e_{ij}^{
(l)
})
e_{ij}^{
l
} &= \vec{a}^T\mathrm{LeakyReLU}\left(
e_{ij}^{
(l)
} &= \vec{a}^T
^{(l)}
\mathrm{LeakyReLU}\left(
W^{(l)}_{left} h_{i} + W^{(l)}_{right} h_{j}
]
\right)
W^{(l)}_{left} h_{i} + W^{(l)}_{right} h_{j}\right)
Parameters
Parameters
----------
----------
...
...
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