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
46c2a5cb
Commit
46c2a5cb
authored
Dec 22, 2017
by
rusty1s
Browse files
typo
parent
c648e063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
torch_scatter/functions/mean.py
torch_scatter/functions/mean.py
+4
-4
No files found.
torch_scatter/functions/mean.py
View file @
46c2a5cb
...
...
@@ -11,11 +11,11 @@ def scatter_mean_(output, index, input, dim=0):
For one-dimensional tensors, the operation computes
.. math::
\mathrm{output}_i = \mathrm{output}_i + \frac{1}{N_
j
} \cdot
\mathrm{output}_i = \mathrm{output}_i + \frac{1}{N_
i
} \cdot
\sum_j \mathrm{input}_j
where sum is over :math:`j` such that :math:`\mathrm{index}_j = i` and
:math:`N_
j
` indicates the number of indices referecing :math:`
j
`.
:math:`N_
i
` indicates the number of indices refere
n
cing :math:`
i
`.
Args:
output (Tensor): The destination tensor
...
...
@@ -60,11 +60,11 @@ def scatter_mean(index, input, dim=0, size=None, fill_value=0):
For one-dimensional tensors, the operation computes
.. math::
\mathrm{output}_i = \mathrm{fill\_value} + \frac{1}{N_
j
} \cdot
\mathrm{output}_i = \mathrm{fill\_value} + \frac{1}{N_
i
} \cdot
\sum_j \mathrm{input}_j
where sum is over :math:`j` such that :math:`\mathrm{index}_j = i` and
:math:`N_
j
` indicates the number of indices referecing :math:`
j
`.
:math:`N_
i
` indicates the number of indices refere
n
cing :math:`
i
`.
Args:
index (LongTensor): The indices of elements to scatter
...
...
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