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:: ĐệmFIFOHàng đợi:: Attr
#include <data_flow_ops.h>
Bộ cài đặt thuộc tính tùy chọn cho PaddingFIFOQueue .
Bản tóm tắt
Chức năng công cộng |
---|
Capacity (int64 x) | Giới hạn trên của số phần tử trong hàng đợi này. |
Container (StringPiece x) | Nếu không trống, hàng đợi này sẽ được đặt trong vùng chứa nhất định. |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | Hình dạng của mỗi thành phần trong một giá trị. |
SharedName (StringPiece x) | Nếu không trống, hàng đợi này sẽ được chia sẻ dưới tên đã cho trong nhiều phiên. |
Thuộc tính công khai
dung tích_
int64 tensorflow::ops::PaddingFIFOQueue::Attrs::capacity_ = -1
vùng chứa_
StringPiece tensorflow::ops::PaddingFIFOQueue::Attrs::container_ = ""
hình dạng_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::PaddingFIFOQueue::Attrs::shapes_ = {}
tên_chia_sẻ_
StringPiece tensorflow::ops::PaddingFIFOQueue::Attrs::shared_name_ = ""
Chức năng công cộng
Dung tích
TF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Capacity(
int64 x
)
Giới hạn trên của số phần tử trong hàng đợi này.
Số âm có nghĩa là không có giới hạn.
Mặc định là -1
thùng chứa
TF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Container(
StringPiece x
)
Nếu không trống, hàng đợi này sẽ được đặt trong vùng chứa nhất định.
Nếu không, vùng chứa mặc định sẽ được sử dụng.
Mặc định là ""
Hình dạng
TF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Shapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
Hình dạng của mỗi thành phần trong một giá trị.
Độ dài của attr này phải bằng 0 hoặc bằng độ dài của thành phần_types. Hình dạng có thứ hạng cố định nhưng kích thước thay đổi được cho phép bằng cách đặt bất kỳ kích thước hình dạng nào thành -1. Trong trường hợp này, hình dạng của đầu vào có thể thay đổi theo kích thước nhất định và DequeueMany sẽ đệm kích thước đã cho bằng các số 0 cho đến hình dạng tối đa của tất cả các phần tử trong lô nhất định. Nếu độ dài của attr này là 0, các phần tử hàng đợi khác nhau có thể có thứ hạng và hình dạng khác nhau, nhưng mỗi lần chỉ có một phần tử có thể bị loại bỏ.
Mặc định là []
Tên chia sẻ
TF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::SharedName(
StringPiece x
)
Nếu không trống, hàng đợi này sẽ được chia sẻ dưới tên đã cho trong nhiều phiên.
Mặc định là ""
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-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::PaddingFIFOQueue::Attrs Struct Reference\n\ntensorflow::ops::PaddingFIFOQueue::Attrs\n========================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [PaddingFIFOQueue](/versions/r1.15/api_docs/cc/class/tensorflow/ops/padding-f-i-f-o-queue#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1a4f3d638a9ca754c89d42d2eba51d695d)` = -1` | `int64` |\n| [container_](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1abbdf45e1046ad7f88ff4affee8a46c61)` = \"\"` | `StringPiece` |\n| [shapes_](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1a3b2834168ccf43cf2e88e937a57e25a2)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1a4049c026c1262b7411d61a0af36660c3)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1a37b197e3528b7d7f8c8203b12e954701)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/padding-f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs) The upper bound on the number of elements in this queue. |\n| [Container](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1ae869c780a3baabe5b04cbee60e17b35e)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/padding-f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs) If non-empty, this queue is placed in the given container. |\n| [Shapes](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1ab5518933cf19c007b1bb4ba142200a63)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/padding-f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs) The shape of each component in a value. |\n| [SharedName](#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs_1a4ad3be8f42b64182901f8843d58b0a0b)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/padding-f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1_1_attrs) If non-empty, this queue will be shared under the given name across multiple sessions. |\n\nPublic attributes\n-----------------\n\n### capacity_\n\n```scdoc\nint64 tensorflow::ops::PaddingFIFOQueue::Attrs::capacity_ = -1\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::PaddingFIFOQueue::Attrs::container_ = \"\"\n``` \n\n### shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::PaddingFIFOQueue::Attrs::shapes_ = {}\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::PaddingFIFOQueue::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Capacity(\n int64 x\n)\n``` \nThe upper bound on the number of elements in this queue.\n\nNegative numbers mean no limit.\n\nDefaults to -1 \n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this queue is placed in the given container.\n\nOtherwise, a default container is used.\n\nDefaults to \"\" \n\n### Shapes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::Shapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nThe shape of each component in a value.\n\nThe length of this attr must be either 0 or the same as the length of component_types. Shapes of fixed rank but variable size are allowed by setting any shape dimension to -1. In this case, the inputs' shape may vary along the given dimension, and DequeueMany will pad the given dimension with zeros up to the maximum shape of all elements in the given batch. If the length of this attr is 0, different queue elements may have different ranks and shapes, but only one element may be dequeued at a time.\n\nDefaults to \\[\\] \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PaddingFIFOQueue::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this queue will be shared under the given name across multiple sessions.\n\nDefaults to \"\""]]