Spec-Zone.ru › TensorFlow C++ 2.4

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. Градиенты из обратного распространения.

Возвращает:

  • Output d_values: 1-D. Обратное распространение в значения.
  • Output d_default_value: 0-D. Обратное распространение в default_value.
Конструкторы и деструкторы
SparseFillEmptyRowsGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input reverse_index_map, ::tensorflow::Input grad_values)
Общедоступные атрибуты
d_default_value
::tensorflow::Output
d_values
::tensorflow::Output
operation
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
)

© 2020 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/versions/r2.4/api_docs/cc/class/tensorflow/ops/sparse-fill-empty-rows-grad

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API