Computes the sum along segments of a tensor.
tf.raw_ops.SegmentSumV2(
data, segment_ids, num_segments, name=None
)
Read the section on segmentation for an explanation of segments.
Computes a tensor such that
\(output_i = \sum_j data_j\) where sum is over j
such
that segment_ids[j] == i
.
If the sum is empty for a given segment ID i
, output[i] = 0
.
Note that this op is currently only supported with jit_compile=True.