tf.raw_ops.SparseSegmentSumGrad | TensorFlow v2.16.1 (original) (raw)
tf.raw_ops.SparseSegmentSumGrad
Stay organized with collections Save and categorize content based on your preferences.
Computes gradients for SparseSegmentSum.
View aliases
Compat aliases for migration
SeeMigration guide for more details.
tf.compat.v1.raw_ops.SparseSegmentSumGrad
tf.raw_ops.SparseSegmentSumGrad(
grad, indices, segment_ids, output_dim0, name=None
)
Returns tensor "output" with same shape as grad, except for dimension 0 whose value is output_dim0.
Args | |
---|---|
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). |
Returns |
---|
A Tensor. Has the same type as grad. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.