Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: Hàng đợiEnqueueNhiều
#include <data_flow_ops.h>
Xếp hàng 0 hoặc nhiều bộ dữ liệu của một hoặc nhiều tensor trong hàng đợi đã cho.
Bản tóm tắt
Hoạt động này cắt từng tensor thành phần dọc theo chiều thứ 0 để tạo thành nhiều phần tử hàng đợi. Tất cả các thành phần của bộ dữ liệu phải có cùng kích thước ở chiều thứ 0.
Đầu vào thành phần có k phần tử, tương ứng với các thành phần của bộ dữ liệu được lưu trữ trong hàng đợi nhất định.
NB Nếu hàng đợi đầy, thao tác này sẽ chặn cho đến khi các phần tử đã cho được đưa vào hàng đợi (hoặc 'timeout_ms' trôi qua, nếu được chỉ định).
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- xử lý: Xử lý cho một hàng đợi.
- các thành phần: Một hoặc nhiều tensor mà từ đó các tensor được xếp hàng đợi sẽ được lấy ra.
Thuộc tính tùy chọn (xem Attrs
):
- timeout_ms: Nếu hàng đợi quá đầy, thao tác này sẽ chặn tối đa timeout_ms mili giây. Lưu ý: Tùy chọn này chưa được hỗ trợ.
Trả về:
Thuộc tính công khai
Chức năng công cộng
toán tử::tenorflow::Hoạt động
operator::tensorflow::Operation() const
Các hàm tĩnh công khai
Hết thời gianMs
Attrs TimeoutMs(
int64 x
)
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::QueueEnqueueMany Class Reference\n\ntensorflow::ops::QueueEnqueueMany\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nEnqueues zero or more tuples of one or more tensors in the given queue.\n\nSummary\n-------\n\nThis operation slices each component tensor along the 0th dimension to make multiple queue elements. [All](/versions/r2.1/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) of the tuple components must have the same size in the 0th dimension.\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 elements have been enqueued (or 'timeout_ms' elapses, if specified).\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/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.1/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs)):\n\n- timeout_ms: If the queue is too 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.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueEnqueueMany](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1a5ecdf3e3a6258d96aead53f0a7dd978d)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::InputList](/versions/r2.1/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components)` ||\n| [QueueEnqueueMany](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1afefa06b2fa7cccfdcadef27efed52358)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::InputList](/versions/r2.1/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components, const `[QueueEnqueueMany::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1a446ef8eb2cfb77152f2bdb7478c31824) | [Operation](/versions/r2.1/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_many_1a884681259cd800fb78503ea825852430)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1ae1ceaf22a97e82b627c27817a388c723)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueEnqueueMany::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs) | Optional attribute setters for [QueueEnqueueMany](/versions/r2.1/api_docs/cc/class/tensorflow/ops/queue-enqueue-many#classtensorflow_1_1ops_1_1_queue_enqueue_many). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueEnqueueMany\n\n```gdscript\n QueueEnqueueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components\n)\n``` \n\n### QueueEnqueueMany\n\n```gdscript\n QueueEnqueueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components,\n const QueueEnqueueMany::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```"]]