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})
Args:
-
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. Some content is licensed under the numpy license.
Last updated 2021-08-16 UTC.
[null,null,["Last updated 2021-08-16 UTC."],[],[],null,["# tensorflow::ops::SparseFillEmptyRowsGrad Class Reference\n\ntensorflow::\nops::\nSparseFillEmptyRowsGrad\n==========================================\n\n`\n#include \u003csparse_ops.h\u003e\n`\n\n\nThe gradient of\n[SparseFillEmptyRows](/versions/r2.6/api_docs/cc/class/tensorflow/ops/sparse-fill-empty-rows#classtensorflow_1_1ops_1_1_sparse_fill_empty_rows)\n.\n\nSummary\n-------\n\n\nTakes vectors reverse_index_map, shaped\n`\n[N]\n`\n, and grad_values, shaped\n`\n[N_full]\n`\n, where\n`\nN_full \u003e= N\n`\nand copies data into either\n`\nd_values\n`\nor\n`\nd_default_value\n`\n. Here\n`\nd_values\n`\nis shaped\n`\n[N]\n`\nand\n`\nd_default_value\n`\nis a scalar.\n\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\n\nArgs:\n\n- scope: A [Scope](/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- reverse_index_map: 1-D. The reverse index map from [SparseFillEmptyRows](/versions/r2.6/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\n\nReturns:\n\n- `\n `[Output](/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)`\n ` d_values: 1-D. The backprop into values.\n- `\n `[Output](/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)`\n ` 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/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::Input](/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reverse_index_map, :: `[tensorflow::Input](/versions/r2.6/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/r2.6/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/r2.6/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/r2.6/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```"]]