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 đợiDequeue:: Attr
#include <data_flow_ops.h>
Trình thiết lập thuộc tính tùy chọn cho QueueDequeue .
Bản tóm tắt
Chức năng công cộng |
---|
TimeoutMs (int64 x) | Nếu hàng đợi trống, thao tác này sẽ chặn tối đa timeout_ms mili giây. |
Thuộc tính công khai
hết thời gian chờ_ms_
int64 tensorflow::ops::QueueDequeue::Attrs::timeout_ms_ = -1
Chức năng công cộng
Hết thời gianMs
TF_MUST_USE_RESULT Attrs tensorflow::ops::QueueDequeue::Attrs::TimeoutMs(
int64 x
)
Nếu hàng đợi trống, 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ợ.
Mặc định là -1
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::QueueDequeue::Attrs Struct Reference\n\ntensorflow::ops::QueueDequeue::Attrs\n====================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [QueueDequeue](/versions/r2.2/api_docs/cc/class/tensorflow/ops/queue-dequeue#classtensorflow_1_1ops_1_1_queue_dequeue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------|---------|\n| [timeout_ms_](#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs_1aaee37b7d298921335443893778a85c2c)` = -1` | `int64` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs_1ae5cae84de31d96ec00fa2c9d4b4684c0)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/queue-dequeue/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs) If the queue is empty, this operation will block for up to timeout_ms milliseconds. |\n\nPublic attributes\n-----------------\n\n### timeout_ms_\n\n```scdoc\nint64 tensorflow::ops::QueueDequeue::Attrs::timeout_ms_ = -1\n``` \n\nPublic functions\n----------------\n\n### TimeoutMs\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QueueDequeue::Attrs::TimeoutMs(\n int64 x\n)\n``` \nIf the queue is empty, this operation will block for up to timeout_ms milliseconds.\n\nNote: This option is not supported yet.\n\nDefaults to -1"]]