function unsortedSegmentSum_(x, segmentIds, numSegments) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "unsortedSegmentSum");
    const $segmentIds = (0, _tensorUtilEnv.convertToTensor)(segmentIds, "segmentIds", "unsortedSegmentSum", "int32");
    (0, _util.assert)((0, _util.isInt)(numSegments), ()=>"numSegments must be of dtype int");
    const inputs = {
        x: $x,
        segmentIds: $segmentIds
    };
    const attrs = {
        numSegments
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.UnsortedSegmentSum), inputs, attrs);
}
Computes the sum along segments of a `tf.Tensor`.

```js
const x = tf.tensor1d([1, 2, 3, 4]);
const segmentIds = tf.tensor1d([1, 2, 0, 1], 'int32');
const numSegments = 3;

x.unsortedSegmentSum(segmentIds, numSegments).print()
//or tf.unsortedSegmentSum(x, segmentIds, numSegments)
```
@param x The `tf.Tensor` that will be summed along its segments.
@param segmentIds A `tf.Tensor1D` whose rank is equal to the rank of `x`'s
dimension along the `axis`.  Maps each element of `x` to a segment.
@param numSegments The number of distinct `segmentIds`.

@doc {heading: 'Operations', subheading: 'Segment'}