Commit 46c2a5cb authored by rusty1s's avatar rusty1s
Browse files

typo

parent c648e063
...@@ -11,11 +11,11 @@ def scatter_mean_(output, index, input, dim=0): ...@@ -11,11 +11,11 @@ def scatter_mean_(output, index, input, dim=0):
For one-dimensional tensors, the operation computes For one-dimensional tensors, the operation computes
.. math:: .. 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 \sum_j \mathrm{input}_j
where sum is over :math:`j` such that :math:`\mathrm{index}_j = i` and 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 referencing :math:`i`.
Args: Args:
output (Tensor): The destination tensor output (Tensor): The destination tensor
...@@ -60,11 +60,11 @@ def scatter_mean(index, input, dim=0, size=None, fill_value=0): ...@@ -60,11 +60,11 @@ def scatter_mean(index, input, dim=0, size=None, fill_value=0):
For one-dimensional tensors, the operation computes For one-dimensional tensors, the operation computes
.. math:: .. 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 \sum_j \mathrm{input}_j
where sum is over :math:`j` such that :math:`\mathrm{index}_j = i` and 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 referencing :math:`i`.
Args: Args:
index (LongTensor): The indices of elements to scatter index (LongTensor): The indices of elements to scatter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment