tensorflow:: ops:: SparseAddGrad

#include <sparse_ops.h>

אופרטור הגרדיאנט עבור האופציה SparseAdd .

תַקצִיר

פעולת SparseAdd מחשבת את A + B, כאשר A, B והסכום מיוצגים כולם כאובייקטי SparseTensor . פעולת SparseTensor זו קולטת את הגרדיאנט במעלה הזרם עבור ערכים שאינם ריקים של הסכום, ומוציאה את הגרדיאנטים עבור הערכים שאינם ריקים של A ו-B.

טיעונים:

  • היקף: אובייקט היקף
  • 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 , size [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
b_val_grad
operation

מאפיינים ציבוריים

א_ואל_גראד

::tensorflow::Output a_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
)