tensorflow:: אופס:: SparseAddGrad

#include <sparse_ops.h>

אופרטור השיפוע עבור האופציה SparseAdd .

סיכום

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

טיעונים:

  • scope: אובייקט Scope
  • backprop_val_grad: 1-D עם צורה [nnz(sum)] . השיפוע ביחס לערכים הלא ריקים של הסכום.
  • a_indices: 2-D. indices של SparseTensor A, גודל [nnz(A), ndims] .
  • b_indices: 2-D. 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
)