Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
aliran tensor:: operasi:: AntrianEnqueue
#include <data_flow_ops.h>
Mengantrekan tupel dari satu atau lebih tensor dalam antrean tertentu.
Ringkasan
Input komponen memiliki k elemen, yang sesuai dengan komponen tupel yang disimpan dalam antrian tertentu.
NB Jika antrian penuh, operasi ini akan diblokir hingga elemen tertentu telah dimasukkan ke dalam antrian (atau 'timeout_ms' berlalu, jika ditentukan).
Argumen:
- ruang lingkup: Objek Lingkup
- handle: Pegangan untuk antrian.
- komponen: Satu atau lebih tensor yang darinya tensor enqueued harus diambil.
Atribut opsional (lihat Attrs
):
- timeout_ms: Jika antrian penuh, operasi ini akan diblokir hingga timeout_ms milidetik. Catatan: Opsi ini belum didukung.
Pengembalian:
Atribut publik
Fungsi publik
operator::tensorflow::Operasi
operator::tensorflow::Operation() const
Fungsi statis publik
Batas waktuMs
Attrs TimeoutMs(
int64 x
)
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::QueueEnqueue Class Reference\n\ntensorflow::ops::QueueEnqueue\n=============================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nEnqueues a tuple of one or more tensors in the given queue.\n\nSummary\n-------\n\nThe components input has k elements, which correspond to the components of tuples stored in the given queue.\n\nN.B. If the queue is full, this operation will block until the given element has been enqueued (or 'timeout_ms' elapses, if specified).\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a queue.\n- components: One or more tensors from which the enqueued tensors should be taken.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/queue-enqueue/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_1_1_attrs)):\n\n- timeout_ms: If the queue is full, this operation will block for up to timeout_ms milliseconds. Note: This option is not supported yet.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueEnqueue](#classtensorflow_1_1ops_1_1_queue_enqueue_1a0f0c1661cfe21aaf3ab6a9621f898b2b)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::InputList](/versions/r2.2/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components)` ||\n| [QueueEnqueue](#classtensorflow_1_1ops_1_1_queue_enqueue_1a90b82cbaf8f3ef9cee2fec35ae559e8f)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::InputList](/versions/r2.2/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components, const `[QueueEnqueue::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/queue-enqueue/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_queue_enqueue_1ac2647083cdddc7cdc2b993e219eba7bb) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_queue_enqueue_1a2f188bd8c727a23ce6c06f4c7cef00ba)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#classtensorflow_1_1ops_1_1_queue_enqueue_1a705f7ecc8021d5653e3f3adbd92ca8ff)`(int64 x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/queue-enqueue/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueEnqueue::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/queue-enqueue/attrs) | Optional attribute setters for [QueueEnqueue](/versions/r2.2/api_docs/cc/class/tensorflow/ops/queue-enqueue#classtensorflow_1_1ops_1_1_queue_enqueue). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueEnqueue\n\n```gdscript\n QueueEnqueue(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components\n)\n``` \n\n### QueueEnqueue\n\n```gdscript\n QueueEnqueue(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components,\n const QueueEnqueue::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### TimeoutMs\n\n```text\nAttrs TimeoutMs(\n int64 x\n)\n```"]]