tf.raw_ops.SparseFillEmptyRowsGrad
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
The gradient of SparseFillEmptyRows.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.raw_ops.SparseFillEmptyRowsGrad
tf.raw_ops.SparseFillEmptyRowsGrad(
reverse_index_map, grad_values, name=None
)
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_defaultvalue = sum{k : 0 .. N_full - 1} (
grad_values[k] * 1{k not in reverse_index_map})
Args |
reverse_index_map
|
A Tensor of type int64 .
1-D. The reverse index map from SparseFillEmptyRows.
|
grad_values
|
A Tensor . 1-D. The gradients from backprop.
|
name
|
A name for the operation (optional).
|
Returns |
A tuple of Tensor objects (d_values, d_default_value).
|
d_values
|
A Tensor . Has the same type as grad_values .
|
d_default_value
|
A Tensor . Has the same type as grad_values .
|
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-01-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]