جریان تنسور:: عملیات:: RandomShuffleQueue
#include <data_flow_ops.h>
صفی که ترتیب عناصر را تصادفی می کند.
خلاصه
استدلال ها:
- scope: یک شی Scope
- component_types: نوع هر جزء در یک مقدار.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- shapes: شکل هر جزء در یک مقدار. طول این attr باید یا 0 باشد یا با طول component_types برابر باشد. اگر طول این attr 0 باشد، اشکال عناصر صف محدود نمیشوند و تنها یک عنصر ممکن است در هر بار صف بندی شود.
- ظرفیت: کران بالای تعداد عناصر در این صف. اعداد منفی به معنای بدون محدودیت است.
- min_after_dequeue: Dequeue مسدود می شود مگر اینکه این تعداد عناصر پس از صف یا بسته شدن صف وجود داشته باشد. این حداقل سطح اختلاط عناصر را تضمین می کند.
- seed: اگر دانه یا seed2 غیر صفر باشد، مولد اعداد تصادفی توسط دانه داده شده بذر می شود. در غیر این صورت از یک بذر تصادفی استفاده می شود.
- seed2: دانه دوم برای جلوگیری از برخورد دانه.
- ظرف: اگر خالی نباشد، این صف در ظرف داده شده قرار می گیرد. در غیر این صورت از یک کانتینر پیش فرض استفاده می شود.
- shared_name: اگر خالی نباشد، این صف با نام داده شده در چندین جلسه به اشتراک گذاشته می شود.
برمیگرداند:
-
Output
: دسته به صف.
سازندگان و ویرانگرها | |
---|---|
RandomShuffleQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types) | |
RandomShuffleQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types, const RandomShuffleQueue::Attrs & attrs) |
صفات عمومی | |
---|---|
handle | |
operation |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
توابع استاتیک عمومی | |
---|---|
Capacity (int64 x) | |
Container (StringPiece x) | |
MinAfterDequeue (int64 x) | |
Seed (int64 x) | |
Seed2 (int64 x) | |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
SharedName (StringPiece x) |
سازه ها | |
---|---|
tensorflow:: ops:: RandomShuffleQueue:: Attrs | تنظیم کننده های ویژگی اختیاری برای RandomShuffleQueue . |
صفات عمومی
دسته
::tensorflow::Output handle
عملیات
Operation operation
توابع عمومی
RandomShuffleQueue
RandomShuffleQueue( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types )
RandomShuffleQueue
RandomShuffleQueue( const ::tensorflow::Scope & scope, const DataTypeSlice & component_types, const RandomShuffleQueue::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
ظرفیت
Attrs Capacity( int64 x )
ظرف
Attrs Container( StringPiece x )
MinAfterDequeue
Attrs MinAfterDequeue( int64 x )
بذر
Attrs Seed( int64 x )
دانه 2
Attrs Seed2( int64 x )
اشکال
Attrs Shapes( const gtl::ArraySlice< PartialTensorShape > & x )
SharedName
Attrs SharedName( StringPiece x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::RandomShuffleQueue Class Reference\n\ntensorflow::ops::RandomShuffleQueue\n===================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nA queue that randomizes the order of elements.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/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.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_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. If the length of this attr is 0, the shapes of queue elements are not constrained, and 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- min_after_dequeue: Dequeue will block unless there would be this many elements after the dequeue or the queue is closed. This ensures a minimum level of mixing of elements.\n- seed: If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. Otherwise, a random seed is used.\n- seed2: A second seed to avoid seed collision.\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.1/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| [RandomShuffleQueue](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a9bccc69b7e3a13f4bb5d7323fd05ef6c)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & component_types)` ||\n| [RandomShuffleQueue](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ac7d64746531a706ec9376acd40b3a6ad)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & component_types, const `[RandomShuffleQueue::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [handle](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a29baf87a7c0accb04db35584eefbc430) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a15b6a2b2a78276af62a6e37fb3f25d8a) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a61438811ad12bb57fb2a2d19f00a9189)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1acb4b0c5652b368664dd85dcc037d3c02)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1abb138edd572be65ba0192bf164347847)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a4413b1b2cb0ddee75d33f76663beeaaa)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [Container](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ad14fa9c08950c6c23b22fc601befd539)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [MinAfterDequeue](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a274e69d218da5754021b398f61c5bf1a)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [Seed](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a67af85647a9577958568a226754aab46)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [Seed2](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ae9697d776eb5643d3bf927ee56f4ca4c)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [Shapes](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a8ca53d0b2e6ee989a88c2020e1fc0c08)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a6191f641c52c89e90b546d547834a02c)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::RandomShuffleQueue::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs) | Optional attribute setters for [RandomShuffleQueue](/versions/r2.1/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_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### RandomShuffleQueue\n\n```gdscript\n RandomShuffleQueue(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & component_types\n)\n``` \n\n### RandomShuffleQueue\n\n```gdscript\n RandomShuffleQueue(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & component_types,\n const RandomShuffleQueue::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### MinAfterDequeue\n\n```text\nAttrs MinAfterDequeue(\n int64 x\n)\n``` \n\n### Seed\n\n```text\nAttrs Seed(\n int64 x\n)\n``` \n\n### Seed2\n\n```text\nAttrs Seed2(\n int64 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```"]]