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
3a19bbc5
"tests/python/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "8f1b5782bb78a5285ea491626630d5a5cbe1512f"
Unverified
Commit
3a19bbc5
authored
Feb 02, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Feb 02, 2021
Browse files
fix doc (#2604)
parent
db57809d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docs/source/api/python/nn.rst
docs/source/api/python/nn.rst
+1
-1
python/dgl/ops/edge_softmax.py
python/dgl/ops/edge_softmax.py
+2
-2
No files found.
docs/source/api/python/nn.rst
View file @
3a19bbc5
...
@@ -26,4 +26,4 @@ GNN-like structures, e.g.
...
@@ -26,4 +26,4 @@ GNN-like structures, e.g.
.. autosummary::
.. autosummary::
:toctree: ../../generated/
:toctree: ../../generated/
nn.
functional.edge_softmax
functional.edge_softmax
python/dgl/ops/edge_softmax.py
View file @
3a19bbc5
...
@@ -7,11 +7,11 @@ __all__ = ['edge_softmax']
...
@@ -7,11 +7,11 @@ __all__ = ['edge_softmax']
def
edge_softmax
(
graph
,
logits
,
eids
=
ALL
,
norm_by
=
'dst'
):
def
edge_softmax
(
graph
,
logits
,
eids
=
ALL
,
norm_by
=
'dst'
):
r
"""
r
"""
Compute softmax over weights of incoming edges for every node.
Description
Description
-----------
-----------
Compute edge softmax.
For a node :math:`i`, edge softmax is an operation that computes
For a node :math:`i`, edge softmax is an operation that computes
.. math::
.. math::
a_{ij} = \frac{\exp(z_{ij})}{\sum_{j\in\mathcal{N}(i)}\exp(z_{ij})}
a_{ij} = \frac{\exp(z_{ij})}{\sum_{j\in\mathcal{N}(i)}\exp(z_{ij})}
...
...
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