mindspore.ops.UnsortedSegmentSum ================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/r2.2/docs/api/api_python/ops/mindspore.ops.UnsortedSegmentSum.rst :alt: 查看源文件 .. py:class:: mindspore.ops.UnsortedSegmentSum 沿分段计算输入Tensor元素的和。 更多参考详见 :func:`mindspore.ops.unsorted_segment_sum`。 输入: - **input_x** (Tensor) - 待进行分段求和的Tensor,shape: :math:`(x_1, x_2, ..., x_R)` 。 - **segment_ids** (Tensor) - 用于指示每个元素所属段的标签,将shape设置为 :math:`(x_1, x_2, ..., x_N)` ,其中0