Commit b1b7116a authored by rusty1s's avatar rusty1s
Browse files

docstring

parent eb438429
......@@ -12,8 +12,8 @@ def scatter_add_(output, index, input, dim=0):
corresponding value in :attr:`index` for dimension = :attr:`dim`. If
multiple indices reference the same location, their contributions add.
If :attr:`input` and :attr:`index` are n-dimensional tensors with equal
size :math:`(x_0, ..., x_{i-1}, x_i, x_{i+1}, ..., x_{n-1})` and
If :attr:`input` and :attr:`index` are n-dimensional tensors with size
:math:`(x_0, ..., x_{i-1}, x_i, x_{i+1}, ..., x_{n-1})` and
:attr:`dim` = i, then :attr:`output` must be an n-dimensional tensor with
size :math:`(x_0, ..., x_{i-1}, y, x_{i+1}, ..., x_{n-1})`. Moreover, the
values of :attr:`index` must be between `0` and `output.size(dim) - 1`.
......
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