Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::SparseSegmentMeanGradV2
#include <math_ops.h>
Computes gradients for SparseSegmentMean.
Summary
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".
Args:
Returns:
Public attributes
Public functions
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::SparseSegmentMeanGradV2 Class Reference\n\ntensorflow::ops::SparseSegmentMeanGradV2\n========================================\n\n`#include \u003cmath_ops.h\u003e`\n\nComputes gradients for [SparseSegmentMean](/versions/r2.14/api_docs/cc/class/tensorflow/ops/sparse-segment-mean#classtensorflow_1_1ops_1_1_sparse_segment_mean).\n\nSummary\n-------\n\nReturns 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\".\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- grad: gradient propagated to the [SparseSegmentMean](/versions/r2.14/api_docs/cc/class/tensorflow/ops/sparse-segment-mean#classtensorflow_1_1ops_1_1_sparse_segment_mean) op.\n- indices: indices passed to the corresponding [SparseSegmentMean](/versions/r2.14/api_docs/cc/class/tensorflow/ops/sparse-segment-mean#classtensorflow_1_1ops_1_1_sparse_segment_mean) op.\n- segment_ids: segment_ids passed to the corresponding [SparseSegmentMean](/versions/r2.14/api_docs/cc/class/tensorflow/ops/sparse-segment-mean#classtensorflow_1_1ops_1_1_sparse_segment_mean) op.\n- dense_output_dim0: dimension 0 of \"data\" passed to [SparseSegmentMean](/versions/r2.14/api_docs/cc/class/tensorflow/ops/sparse-segment-mean#classtensorflow_1_1ops_1_1_sparse_segment_mean) op.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) sorted_unique_indices\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseSegmentMeanGradV2](#classtensorflow_1_1ops_1_1_sparse_segment_mean_grad_v2_1ac0198f67798086ea429c901d8c57a00d)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` indices, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` segment_ids, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` dense_output_dim0)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_sparse_segment_mean_grad_v2_1a0d81658d16a76b9ef8efa098dbd10e9f) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_sparse_segment_mean_grad_v2_1ab43dd0cbc509725b922007df8b397b34) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [sorted_unique_indices](#classtensorflow_1_1ops_1_1_sparse_segment_mean_grad_v2_1a97df8aae4d3dcbcb4cdc29432de5fb59) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\n### sorted_unique_indices\n\n```scdoc\n::tensorflow::Output sorted_unique_indices\n``` \n\nPublic functions\n----------------\n\n### SparseSegmentMeanGradV2\n\n```gdscript\n SparseSegmentMeanGradV2(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input grad,\n ::tensorflow::Input indices,\n ::tensorflow::Input segment_ids,\n ::tensorflow::Input dense_output_dim0\n)\n```"]]