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
torch-scatter
Commits
11a454c2
Commit
11a454c2
authored
Dec 22, 2017
by
rusty1s
Browse files
added image to doc
parent
95e3536d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
155 deletions
+113
-155
docs/source/_figures/add.svg
docs/source/_figures/add.svg
+105
-153
docs/source/_figures/add.tex
docs/source/_figures/add.tex
+1
-1
torch_scatter/functions/add.py
torch_scatter/functions/add.py
+7
-1
No files found.
docs/source/_figures/add.svg
View file @
11a454c2
This diff is collapsed.
Click to expand it.
docs/source/_figures/add.tex
View file @
11a454c2
\documentclass
[class=minimal]
{
standalone
}
\documentclass
[class=minimal
, border=5pt
]
{
standalone
}
\usepackage
{
graphicx
}
\usepackage
{
graphicx
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
...
...
torch_scatter/functions/add.py
View file @
11a454c2
...
@@ -2,7 +2,13 @@ from .utils import gen_output
...
@@ -2,7 +2,13 @@ from .utils import gen_output
def
scatter_add_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_add_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Sums all values from the :attr:`input` tensor into :attr:`output` at the
r
"""
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/add.svg?sanitize=true
:align: center
:width: 400px
Sums all values from the :attr:`input` tensor into :attr:`output` at the
indices specified in the :attr:`index` tensor along an given axis
indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. For each value in :attr:`input`, its output index is specified
:attr:`dim`. For each value in :attr:`input`, its output index is specified
by its index in :attr:`input` for dimensions outside of :attr:`dim` and by
by its index in :attr:`input` for dimensions outside of :attr:`dim` and by
...
...
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