tensorflow:: אופס:: AddSparseToTensorsMap

#include <sparse_ops.h>

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

סיכום

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

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

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

טיעונים:

  • scope: אובייקט Scope
  • מדדים_דלילים: דו מימדי. indices של SparseTensor .
  • sparse_values: 1-D. values של SparseTensor .
  • צורה_דלילה: 1-D. shape ה- SparseTensor .

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

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

החזרות:

  • Output : 0-D. הידית של 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

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

AddSparseToTensorsMap

 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
)
,

tensorflow:: אופס:: AddSparseToTensorsMap

#include <sparse_ops.h>

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

סיכום

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

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

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

טיעונים:

  • scope: אובייקט Scope
  • מדדים_דלילים: דו מימדי. indices של SparseTensor .
  • sparse_values: 1-D. values של SparseTensor .
  • צורה_דלילה: 1-D. shape ה- SparseTensor .

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

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

החזרות:

  • Output : 0-D. הידית של 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

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

AddSparseToTensorsMap

 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
)