tensorflow:: ops:: AddSparseToTensorsMap

#include <sparse_ops.h>

הוסף SparseTensor ל- SparseTensorsMap ומחזיר את ה- handle שלו.

תַקצִיר

SparseTensor מיוצג על ידי שלושה טנזורים: sparse_indices , sparse_values ​​ו- sparse_shape .

אופרטור זה לוקח את ה- SparseTensor הנתון ומוסיף אותו לאובייקט מיכל ( SparseTensorsMap ). מפתח ייחודי בתוך מיכל זה נוצר בצורת int64 , וזהו הערך המוחזר.

ניתן לאחר מכן לקרוא את ה- SparseTensor כחלק ממיני-אצווה על ידי העברת המפתח כאלמנט וקטורי ל- TakeManySparseFromTensorsMap . כדי להבטיח גישה SparseTensorsMap הנכון, יש לוודא שאותו container ו- shared_name מועברים ל-Op הזה. אם לא סופק כאן shared_name , יש להשתמש במקום זאת בשם ה- Operation שנוצר על ידי קריאה AddSparseToTensorsMap כ- shared_name שהועבר ל- TakeManySparseFromTensorsMap . יש לוודא שה-Operations ממוקמים יחד.

טיעונים:

  • היקף: אובייקט היקף
  • sparse_indices: דו-ממדי. indices של ה- SparseTensor .
  • ערכי sparse_values: 1-D. values של ה- SparseTensor .
  • sparse_shape: חד-ממדי. shape ה- SparseTensor .

מאפיינים אופציונליים (ראה Attrs ):

  • container: שם המכולה עבור ה- SparseTensorsMap שנוצר על ידי פעולה זו.
  • שם_שיתוף: השם המשותף עבור SparseTensorsMap שנוצר על ידי פעולה זו. אם ריק, השם הייחודי של הפעולה החדשה ייעשה בו שימוש.

החזרות:

  • Output : 0-D. ה-handle של ה- SparseTensor מאוחסן כעת ב- SparseTensorsMap .

בנאים והורסים

AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
AddSparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const AddSparseToTensorsMap::Attrs & attrs)

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

operation
sparse_handle

תפקידים ציבוריים

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

פונקציות סטטיות ציבוריות

Container (StringPiece x)
SharedName (StringPiece x)

מבנים

tensorflow:: ops:: AddSparseToTensorsMap:: Attrs

קובעי מאפיינים אופציונליים עבור AddSparseToTensorsMap .

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

מִבצָע

Operation operation

ידית_דלילה

::tensorflow::Output sparse_handle

תפקידים ציבוריים

הוסף דליל למפת טנסורים

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

הוסף דליל למפת טנסורים

 AddSparseToTensorsMap(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const AddSparseToTensorsMap::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

מְכוֹלָה

Attrs Container(
  StringPiece x
)

שם משותף

Attrs SharedName(
  StringPiece x
)