tensorflow:: ops:: PriorityQueue

#include <data_flow_ops.h>

תור המייצר אלמנטים ממוינים לפי ערך הרכיב הראשון.

תַקצִיר

שים לב ש- PriorityQueue דורש שהרכיב הראשון של כל רכיב יהיה int64 סקלר, בנוסף לרכיבים האחרים המוצהרים על ידי component_types. לכן, קריאות ל-Enqueue ו-EnqueueMany (resp. Dequeue ו-DequeueMany) ב- PriorityQueue ידרוש כולן (resp. output) ערך נוסף אחד ברשימות הקלט (resp. output) שלהן.

טיעונים:

  • היקף: אובייקט היקף
  • shapes: הצורה של כל רכיב בערך. אורך attr זה חייב להיות 0 או זהה לאורך component_types. אם אורך attr זה הוא 0, צורות רכיבי התור אינן מוגבלות, וניתן להסיר את התור רק מרכיב אחד בכל פעם.

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

  • component_types: הסוג של כל רכיב בערך.
  • קיבולת: הגבול העליון של מספר האלמנטים בתור זה. מספרים שליליים פירושם שאין הגבלה.
  • מיכל: אם אינו ריק, תור זה ממוקם במיכל הנתון. אחרת, נעשה שימוש במיכל ברירת מחדל.
  • שם_שיתוף: אם אינו ריק, תור זה ישותף תחת השם הנתון על פני מספר סשנים.

החזרות:

  • Output : ה-handle לתור.

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

PriorityQueue (const :: tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes)
PriorityQueue (const :: tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes, const PriorityQueue::Attrs & attrs)

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

handle
operation

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

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

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

Capacity (int64 x)
ComponentTypes (const DataTypeSlice & x)
Container (StringPiece x)
SharedName (StringPiece x)

מבנים

tensorflow:: ops:: PriorityQueue:: Attrs

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

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

יָדִית

::tensorflow::Output handle

מִבצָע

Operation operation

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

תור עדיפות

 PriorityQueue(
  const ::tensorflow::Scope & scope,
  const gtl::ArraySlice< PartialTensorShape > & shapes
)

תור עדיפות

 PriorityQueue(
  const ::tensorflow::Scope & scope,
  const gtl::ArraySlice< PartialTensorShape > & shapes,
  const PriorityQueue::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

יְכוֹלֶת

Attrs Capacity(
  int64 x
)

סוגי רכיבים

Attrs ComponentTypes(
  const DataTypeSlice & x
)

מְכוֹלָה

Attrs Container(
  StringPiece x
)

שם משותף

Attrs SharedName(
  StringPiece x
)