تدفق التوتر:: العمليات:: طابور الأولوية

#include <data_flow_ops.h>

قائمة انتظار تنتج عناصر مرتبة حسب قيمة المكون الأول.

ملخص

لاحظ أن PriorityQueue يتطلب أن يكون المكون الأول لأي عنصر هو int64 العددي، بالإضافة إلى العناصر الأخرى المعلنة بواسطة Component_types. لذلك فإن استدعاءات Enqueue وEnqueueMany (resp. Dequeue وDequeueMany) على PriorityQueue ستتطلب جميعها (resp.output) إدخالًا إضافيًا واحدًا في قوائم الإدخال (resp.output) الخاصة بها.

الحجج:

  • النطاق: كائن النطاق
  • الأشكال: شكل كل مكون في القيمة. يجب أن يكون طول attr هذا إما 0 أو نفس طول أنواع_المكونات. إذا كان طول 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(
  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
)