Computes the mean along sparse segments of a tensor.
tf.raw_ops.SparseSegmentMean(
data, indices, segment_ids, sparse_gradient=False, name=None
)
See tf.sparse.segment_sum
for usage examples.
Like SegmentMean
, but segment_ids
can have rank less than data
's first
dimension, selecting a subset of dimension 0, specified by indices
.
Returns | |
---|---|
A Tensor . Has the same type as data .
|