View source on GitHub |
Computes the sum along sparse segments of a tensor divided by the sqrt(N).
tf.sparse.segment_sqrt_n(
data, indices, segment_ids, num_segments=None, name=None
)
Read the section on segmentation for an explanation of segments.
Like tf.sparse.segment_mean
, but instead of dividing by the size of the
segment, N
, divide by sqrt(N)
instead.
Returns | |
---|---|
A tensor of the shape as data, except for dimension 0 which
has size k , the number of segments specified via num_segments or
inferred for the last element in segments_ids .
|