tensorflow:: אופס:: PaddingFIFOQueue
#include <data_flow_ops.h>
תור שמייצר אלמנטים בסדר ראשון נכנס ראשון יוצא.
תַקצִיר
צורות בגודל משתנה מותרות על ידי הגדרת מידות הצורה התואמות ל-0 בצורת attr. במקרה זה DequeueMany ירפד עד לגודל המקסימלי של כל רכיב נתון ב-minibatch. ראה למטה לפרטים.
טיעונים:
- scope: אובייקט Scope
- component_types: הסוג של כל רכיב בערך.
מאפיינים אופציונליים (ראה Attrs
):
- צורות: הצורה של כל רכיב בערך. האורך של attr זה חייב להיות 0 או זהה לאורך של component_types. צורות בדרגה קבועה אך בגודל משתנה מותרות על ידי הגדרת כל ממד צורה ל-1. במקרה זה, צורת הקלט עשויה להשתנות לאורך הממד הנתון, ו-DequeueMany ירפד את הממד הנתון באפסים עד לצורה המקסימלית של כל הרכיבים באצווה הנתונה. אם אורכו של attr זה הוא 0, רכיבי תור שונים עשויים להיות בעלי דרגות וצורות שונות, אך רק אלמנט אחד יכול להיות מנותק בתור בכל פעם.
- יכולת: הגבול העליון של מספר האלמנטים בתור זה. מספרים שליליים פירושם ללא הגבלה.
- מיכל: אם אינו ריק, תור זה ממוקם במיכל הנתון. אחרת, נעשה שימוש במיכל ברירת מחדל.
- shared_name: אם התור אינו ריק, תור זה ישותף תחת השם הנתון על פני מספר הפעלות.
החזרות:
-
Output
: הידית לתור.
בנאים והורסים | |
---|---|
PaddingFIFOQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types) | |
PaddingFIFOQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types, const PaddingFIFOQueue::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
handle | |
operation |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Capacity (int64 x) | |
Container (StringPiece x) | |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
SharedName (StringPiece x) |
מבנים | |
---|---|
tensorflow:: ops:: PaddingFIFOQueue:: Attrs | קובעי תכונות אופציונליים עבור PaddingFIFOQueue . |
תכונות ציבוריות
יָדִית
::tensorflow::Output handle
מִבצָע
Operation operation
תפקידים ציבוריים
PaddingFIFOQueue
PaddingFIFOQueue( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types )
PaddingFIFOQueue
PaddingFIFOQueue( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const PaddingFIFOQueue::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
יְכוֹלֶת
Attrs Capacity( int64 x )
מְכוֹלָה
Attrs Container( StringPiece x )
צורות
Attrs Shapes( const gtl::ArraySlice< PartialTensorShape > & x )
שם משותף
Attrs SharedName( StringPiece x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# tensorflow::ops::PaddingFIFOQueue Class Reference\n\ntensorflow::ops::PaddingFIFOQueue\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nA queue that produces elements in first-in first-out order.\n\nSummary\n-------\n\nVariable-size shapes are allowed by setting the corresponding shape dimensions to 0 in the shape attr. In this case DequeueMany will pad up to the maximum size of any given element in the minibatch. See below for details.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- component_types: The type of each component in a value.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.3/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)):\n\n- shapes: The shape of each component in a value. The 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- capacity: The upper bound on the number of elements in this queue. Negative numbers mean no limit.\n- container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.\n- shared_name: If non-empty, this queue will be shared under the given name across multiple sessions.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The handle to the queue.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PaddingFIFOQueue](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1ab818a0fb5c04118f9fb6a16f8d014bbf)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & component_types)` ||\n| [PaddingFIFOQueue](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a6d7f8309f142ac9ffe7ec1de8a99e11e)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & component_types, const `[PaddingFIFOQueue::Attrs](/versions/r2.3/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)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [handle](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a39eb929611f708215faf1b5be357152e) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a73da6dae81f48ea4ac530b3cc265391e) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a60fdcd5f1e0d321510d5f1924e5ebb98)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a87a368787c970ea80238b0b277d4a1bc)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a24634a5ec26c56d5bf58e40e5f30ec00)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1ae1fa5194a675ccd0aac3d90adb2a5d7e)`(int64 x)` | [Attrs](/versions/r2.3/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) |\n| [Container](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a4d0859f5e43500c22a24ccf99f0b8ac8)`(StringPiece x)` | [Attrs](/versions/r2.3/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) |\n| [Shapes](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a29f0f0ce152db5f4517d7355650f6d2d)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | [Attrs](/versions/r2.3/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) |\n| [SharedName](#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue_1a182e79127160fbc1a6af358ebd5bf0c7)`(StringPiece x)` | [Attrs](/versions/r2.3/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) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::PaddingFIFOQueue::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/padding-f-i-f-o-queue/attrs) | Optional attribute setters for [PaddingFIFOQueue](/versions/r2.3/api_docs/cc/class/tensorflow/ops/padding-f-i-f-o-queue#classtensorflow_1_1ops_1_1_padding_f_i_f_o_queue). |\n\nPublic attributes\n-----------------\n\n### handle\n\n```text\n::tensorflow::Output handle\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### PaddingFIFOQueue\n\n```gdscript\n PaddingFIFOQueue(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & component_types\n)\n``` \n\n### PaddingFIFOQueue\n\n```gdscript\n PaddingFIFOQueue(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & component_types,\n const PaddingFIFOQueue::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Capacity\n\n```text\nAttrs Capacity(\n int64 x\n)\n``` \n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### Shapes\n\n```gdscript\nAttrs Shapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]