Computes gradients for SparseSegmentSum.
tf.raw_ops.SparseSegmentSumGradV2(
grad, indices, segment_ids, dense_output_dim0, name=None
)
Returns tensor "output" with same shape as grad, except for dimension 0 whose value is the number of unique indexes in "indices". Also returns vector "sorted_unique_indices" containing the corresponding indexes from "indices".
Returns | |
---|---|
A tuple of Tensor objects (output, sorted_unique_indices).
|
|
output
|
A Tensor . Has the same type as grad .
|
sorted_unique_indices
|
A Tensor . Has the same type as indices .
|