tensorflow::ops::SparseFillEmptyRowsGrad
#include <sparse_ops.h>
Градиент для SparseFillEmptyRows.
Резюме
Принимает векторы reverse_index_map, формы [N], и grad_values, формы [N_full], где N_full >= N и копирует данные в d_values или d_default_value. Здесь d_values имеет форму [N], а d_default_value — скаляр.
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})
Аргументы:
- scope: Объект Scope
- reverse_index_map: 1-D. Отображение обратного индекса из SparseFillEmptyRows.
- grad_values: 1-D. Градиенты из обратного распространения.
Возвращает:
-
Outputd_values: 1-D. Обратное распространение в значения. -
Outputd_default_value: 0-D. Обратное распространение в default_value.
| Конструкторы и деструкторы | |
|---|---|
SparseFillEmptyRowsGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input reverse_index_map, ::tensorflow::Input grad_values) |
| Общедоступные атрибуты | |
|---|---|
d_default_value | |
d_values | |
operation | |
Общедоступные атрибуты
d_default_value
::tensorflow::Output d_default_value
d_values
::tensorflow::Output d_values
operation
Operation operation
Общедоступные функции
SparseFillEmptyRowsGrad
SparseFillEmptyRowsGrad( const ::tensorflow::Scope & scope, ::tensorflow::Input reverse_index_map, ::tensorflow::Input grad_values )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sparse-fill-empty-rows-grad