Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SparseAddGrad

#include <sparse_ops.h>

Оператор градиента для операции SparseAdd.

Краткое описание

Операция SparseAdd вычисляет A + B, где A, B и сумма представлены объектами SparseTensor. Эта операция получает градиент, передаваемый сверху, относительно непустых значений суммы, и возвращает градиенты относительно непустых значений A и B.

Аргументы:

  • scope: объект Scope
  • backprop_val_grad: одномерный тензор формы [nnz(sum)]. Градиент относительно непустых значений суммы.
  • a_indices: двумерный тензор. indices объекта SparseTensor A, размер [nnz(A), ndims].
  • b_indices: двумерный тензор. indices объекта SparseTensor B, размер [nnz(B), ndims].
  • sum_indices: двумерный тензор. indices суммы SparseTensor, размер [nnz(sum), ndims].

Возвращает:

  • Output a_val_grad: одномерный тензор формы [nnz(A)]. Градиент относительно непустых значений A.
  • Output b_val_grad: одномерный тензор формы [nnz(B)]. Градиент относительно непустых значений B.
Конструкторы и деструкторы
SparseAddGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input backprop_val_grad, ::tensorflow::Input a_indices, ::tensorflow::Input b_indices, ::tensorflow::Input sum_indices)
Публичные атрибуты
a_val_grad
::tensorflow::Output
b_val_grad
::tensorflow::Output
operation
Operation

Публичные атрибуты

a_val_grad

::tensorflow::Output a_val_grad

b_val_grad

::tensorflow::Output b_val_grad

operation

Operation operation

Публичные функции

SparseAddGrad

 SparseAddGrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input backprop_val_grad,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input b_indices,
  ::tensorflow::Input sum_indices
)

© 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-add-grad

Spec-Zone.ru

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