تدفق التوتر:: العمليات:: SparseAddGrad

#include <sparse_ops.h>

عامل التدرج لمرجع SparseAdd .

ملخص

تقوم عملية SparseAdd بحساب A + B، حيث يتم تمثيل A وB والمجموع ككائنات SparseTensor . يأخذ هذا المرجع قيم التدرج غير الفارغة للمجموع، ويخرج التدرجات التي تمثل القيم غير الفارغة لـ A وB.

الحجج:

  • النطاق: كائن النطاق
  • backprop_val_grad: 1-D بالشكل [nnz(sum)] . التدرج فيما يتعلق بالقيم غير الفارغة للمجموع.
  • أ_المؤشرات: 2-د. indices SparseTensor A، الحجم [nnz(A), ndims] .
  • ب_المؤشرات: 2-د. indices SparseTensor B، الحجم [nnz(B), ndims] .
  • مجموع_المؤشرات: 2-D. indices مجموع SparseTensor ، الحجم [nnz(sum), ndims] .

عائدات:

  • Output a_val_grad: 1-D بالشكل [nnz(A)] . التدرج فيما يتعلق بالقيم غير الفارغة لـ A.
  • Output b_val_grad: 1-D بالشكل [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
b_val_grad
operation

الصفات العامة

a_val_grad

::tensorflow::Output a_val_grad

b_val_grad

::tensorflow::Output b_val_grad

عملية

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
)