tensorflow:: אופס:: PriorityQueue

#include <data_flow_ops.h>

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

סיכום

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

טיעונים:

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

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

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

החזרות:

  • Output : הידית לתור.

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

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

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

PriorityQueue

 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
)

ComponentTypes

Attrs ComponentTypes(
  const DataTypeSlice & x
)

מְכוֹלָה

Attrs Container(
  StringPiece x
)

שם משותף

Attrs SharedName(
  StringPiece x
)