Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::SparseAddGrad

#include <sparse_ops.h>

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

Summary

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

Аргументы:

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

Возвращаемое значение:

  • Output a_val_grad: 1-мерный массив с формой [nnz(A)]. Градиент по непустым значениям A.
  • Output b_val_grad: 1-мерный массив с формой [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
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/sparse-add-grad

Spec-Zone.ru

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