Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::SparseFillEmptyRowsGrad
#include <sparse_ops.h>
The gradient of SparseFillEmptyRows.
Summary
Takes vectors reverse_index_map, shaped [N]
, and grad_values, shaped [N_full]
, where N_full >= N
and copies data into either d_values
or d_default_value
. Here d_values
is shaped [N]
and d_default_value
is a scalar.
d_values[j] = grad_values[reverse_index_map[j]] d_default_value = sum_{k : 0 .. N_full - 1} ( grad_values[k] * 1{k not in reverse_index_map})
Arguments:
- scope: A Scope object
- reverse_index_map: 1-D. The reverse index map from SparseFillEmptyRows.
- grad_values: 1-D. The gradients from backprop.
Returns:
Output
d_values: 1-D. The backprop into values.
Output
d_default_value: 0-D. The backprop into default_value.
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.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::SparseFillEmptyRowsGrad Class Reference\n\ntensorflow::ops::SparseFillEmptyRowsGrad\n========================================\n\n`#include \u003csparse_ops.h\u003e`\n\nThe gradient of [SparseFillEmptyRows](/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-fill-empty-rows#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows).\n\nSummary\n-------\n\nTakes vectors reverse_index_map, shaped `[N]`, and grad_values, shaped `[N_full]`, where `N_full \u003e= N` and copies data into either `d_values` or `d_default_value`. Here `d_values` is shaped `[N]` and `d_default_value` is a scalar.\n\nd_values\\[j\\] = grad_values\\[reverse_index_map\\[j\\]\\] d_default_value = sum_{k : 0 .. N_full - 1} ( grad_values\\[k\\] \\* 1{k not in reverse_index_map})\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- reverse_index_map: 1-D. The reverse index map from [SparseFillEmptyRows](/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-fill-empty-rows#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows).\n- grad_values: 1-D. The gradients from backprop.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) d_values: 1-D. The backprop into values.\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) d_default_value: 0-D. The backprop into default_value.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseFillEmptyRowsGrad](#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows_grad_1ada5dd8406dc685e9cef6fb62d22ef08a)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reverse_index_map, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` grad_values)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [d_default_value](#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows_grad_1a390e699bba2fa2de13aa830fa180150b) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [d_values](#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows_grad_1a13ae288ea1b435bc21beaf155bb49a66) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows_grad_1a5d59df27d9ed5efa484e261d96d2fb65) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\nPublic attributes\n-----------------\n\n### d_default_value\n\n```scdoc\n::tensorflow::Output d_default_value\n``` \n\n### d_values\n\n```scdoc\n::tensorflow::Output d_values\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### SparseFillEmptyRowsGrad\n\n```gdscript\n SparseFillEmptyRowsGrad(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input reverse_index_map,\n ::tensorflow::Input grad_values\n)\n```"]]