Spec-Zone.ru › TensorFlow C++

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: одномерный. Обратная карта индексов из SparseFillEmptyRows.
  • grad_values: одномерный. Градиенты обратного распространения.

Возвращает:

  • Output d_values: одномерный. Градиент обратного распространения для values.
  • Output d_default_value: нульмерный. Градиент обратного распространения для 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
)

© 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

Spec-Zone.ru

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