tensorflow :: ops :: PriorityQueue

#include <data_flow_ops.h>

Antrian yang menghasilkan elemen yang diurutkan berdasarkan nilai komponen pertama.

Ringkasan

Perhatikan bahwa PriorityQueue membutuhkan komponen pertama dari setiap elemen menjadi int64 skalar, selain elemen lain yang dideklarasikan oleh component_types. Oleh karena itu, panggilan ke Enqueue dan EnqueueMany (resp. Dequeue dan DequeueMany) pada PriorityQueue semuanya akan memerlukan (resp. Output) satu entri tambahan dalam daftar input (resp. Output) mereka.

Argumen:

  • scope: Objek Scope
  • bentuk: Bentuk setiap komponen dalam sebuah nilai. Panjang attr ini harus 0 atau sama dengan panjang component_types. Jika panjang atribut ini adalah 0, bentuk elemen antrian tidak dibatasi, dan hanya satu elemen yang dapat di-deque pada satu waktu.

Atribut opsional (lihat Attrs ):

  • component_types: Jenis setiap komponen dalam sebuah nilai.
  • kapasitas: Batas atas jumlah elemen dalam antrian ini. Angka negatif berarti tidak ada batasan.
  • container: Jika tidak kosong, antrian ini ditempatkan di container yang diberikan. Jika tidak, penampung default digunakan.
  • shared_name: Jika tidak kosong, antrian ini akan dibagikan dengan nama yang diberikan di beberapa sesi.

Pengembalian:

  • Output : Pegangan ke antrian.

Pembuat dan Penghancur

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

Atribut publik

handle
operation

Fungsi publik

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

Fungsi statis publik

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

Structs

tensorflow :: ops :: PriorityQueue :: Attrs

Penyetel atribut opsional untuk PriorityQueue .

Atribut publik

menangani

::tensorflow::Output handle

operasi

Operation operation

Fungsi publik

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
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Kapasitas

Attrs Capacity(
  int64 x
)

ComponentTypes

Attrs ComponentTypes(
  const DataTypeSlice & x
)

Wadah

Attrs Container(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)