mindspore/docs/api/api_python/ops/mindspore.ops.TensorScatter...

9 lines
504 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.TensorScatterAdd
===============================
.. py:class:: mindspore.ops.TensorScatterAdd
根据指定的更新值和输入索引进行加法运算更新输入Tensor的值。当同一索引有不同更新值时更新的结果将是累积加法的结果。此操作与 :class:`mindspore.ops.ScatterNdAdd` 类似只是更新后的结果是通过算子output返回而不是直接原地更新input。
更多参考详见 :func:`mindspore.ops.tensor_scatter_add`