Have a question? Connect with the community at the TensorFlow Forum Visit Forum

tf.sparse_segment_sum_grad

Computes gradients for SparseSegmentSum.

Returns tensor "output" with same shape as grad, except for dimension 0 whose value is output_dim0.

grad A Tensor. Must be one of the following types: bfloat16, half, float32, float64. gradient propagated to the SparseSegmentSum op.
indices A Tensor. Must be one of the following types: int32, int64. indices passed to the corresponding SparseSegmentSum op.
segment_ids A Tensor. Must be one of the following types: int32, int64. segment_ids passed to the corresponding SparseSegmentSum op.
output_dim0 A Tensor of type int32. dimension 0 of "data" passed to SparseSegmentSum op.
name A name for the operation (optional).

A Tensor. Has the same type as grad.