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
95168d24
Commit
95168d24
authored
Dec 23, 2017
by
rusty1s
Browse files
docstrings contain images
parent
6b5be538
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
12 deletions
+76
-12
torch_scatter/functions/add.py
torch_scatter/functions/add.py
+4
-0
torch_scatter/functions/div.py
torch_scatter/functions/div.py
+12
-2
torch_scatter/functions/max.py
torch_scatter/functions/max.py
+12
-2
torch_scatter/functions/mean.py
torch_scatter/functions/mean.py
+12
-2
torch_scatter/functions/min.py
torch_scatter/functions/min.py
+12
-2
torch_scatter/functions/mul.py
torch_scatter/functions/mul.py
+12
-2
torch_scatter/functions/sub.py
torch_scatter/functions/sub.py
+12
-2
No files found.
torch_scatter/functions/add.py
View file @
95168d24
...
@@ -3,11 +3,15 @@ from .utils import gen_output
...
@@ -3,11 +3,15 @@ from .utils import gen_output
def
scatter_add_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_add_
(
output
,
index
,
input
,
dim
=
0
):
r
"""
r
"""
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/add.svg?sanitize=true
master/docs/source/_figures/add.svg?sanitize=true
:align: center
:align: center
:width: 400px
:width: 400px
|
Sums all values from the :attr:`input` tensor into :attr:`output` at the
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
...
...
torch_scatter/functions/div.py
View file @
95168d24
...
@@ -3,8 +3,18 @@ from .utils import gen_output
...
@@ -3,8 +3,18 @@ from .utils import gen_output
def
scatter_div_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_div_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Divides all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/div.svg?sanitize=true
:align: center
:width: 400px
|
Divides all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**contributions divide** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**contributions divide** (`cf.` :meth:`~torch_scatter.scatter_add_`).
...
...
torch_scatter/functions/max.py
View file @
95168d24
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
def
scatter_max_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_max_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Maximizes all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/max.svg?sanitize=true
:align: center
:width: 400px
|
Maximizes all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**contributions maximize** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**contributions maximize** (`cf.` :meth:`~torch_scatter.scatter_add_`).
The second return value is the index location in :attr:`input` of each
The second return value is the index location in :attr:`input` of each
...
...
torch_scatter/functions/mean.py
View file @
95168d24
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
def
scatter_mean_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_mean_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Averages all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/mean.svg?sanitize=true
:align: center
:width: 400px
|
Averages all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**contributions average** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**contributions average** (`cf.` :meth:`~torch_scatter.scatter_add_`).
...
...
torch_scatter/functions/min.py
View file @
95168d24
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
...
@@ -3,8 +3,18 @@ from .utils import gen_filled_tensor, gen_output
def
scatter_min_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_min_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Minimizes all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/min.svg?sanitize=true
:align: center
:width: 400px
|
Minimizes all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**contributions minimize** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**contributions minimize** (`cf.` :meth:`~torch_scatter.scatter_add_`).
The second return value is the index location in :attr:`input` of each
The second return value is the index location in :attr:`input` of each
...
...
torch_scatter/functions/mul.py
View file @
95168d24
...
@@ -3,8 +3,18 @@ from .utils import gen_output
...
@@ -3,8 +3,18 @@ from .utils import gen_output
def
scatter_mul_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_mul_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Multiplies all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/mul.svg?sanitize=true
:align: center
:width: 400px
|
Multiplies all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**contributions multiply** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**contributions multiply** (`cf.` :meth:`~torch_scatter.scatter_add_`).
...
...
torch_scatter/functions/sub.py
View file @
95168d24
...
@@ -2,8 +2,18 @@ from .utils import gen_output
...
@@ -2,8 +2,18 @@ from .utils import gen_output
def
scatter_sub_
(
output
,
index
,
input
,
dim
=
0
):
def
scatter_sub_
(
output
,
index
,
input
,
dim
=
0
):
r
"""Subtracts all values from the :attr:`input` tensor into :attr:`output`
r
"""
at the indices specified in the :attr:`index` tensor along an given axis
|
.. image:: https://raw.githubusercontent.com/rusty1s/pytorch_scatter/
master/docs/source/_figures/sub.svg?sanitize=true
:align: center
:width: 400px
|
Subtracts all values from the :attr:`input` tensor into :attr:`output` at
the indices specified in the :attr:`index` tensor along an given axis
:attr:`dim`. If multiple indices reference the same location, their
:attr:`dim`. If multiple indices reference the same location, their
**negated contributions add** (`cf.` :meth:`~torch_scatter.scatter_add_`).
**negated contributions add** (`cf.` :meth:`~torch_scatter.scatter_add_`).
...
...
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