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

9 lines
522 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.TensorScatterSub
===============================
.. py:class:: mindspore.ops.TensorScatterSub
根据指定的更新值和输入索引通过减法运算更新输入Tensor的值。当同一个索引有多个不同值时更新的结果将分别减去这些值。此操作几乎等同于使用 :class:`mindspore.ops.ScatterNdSub` 只是更新后的结果是通过算子output返回而不是直接原地更新input。
更多参考详见 func:`mindspore.ops.tensor_scatter_sub`