সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: অগ্রাধিকার সারি
#include <data_flow_ops.h>
একটি সারি যা প্রথম উপাদানের মান অনুসারে সাজানো উপাদান তৈরি করে।
সারাংশ
উল্লেখ্য যে PriorityQueue-এর জন্য component_types দ্বারা ঘোষিত অন্যান্য উপাদানের পাশাপাশি যেকোনো উপাদানের প্রথম উপাদানটিকে একটি স্কেলার int64 হতে হবে। তাই অগ্রাধিকার সারিতে Enqueue এবং EnqueueMany (resp. Dequeue এবং DequeueMany) কল করার জন্য তাদের ইনপুট (resp. আউটপুট) তালিকায় একটি অতিরিক্ত এন্ট্রির প্রয়োজন হবে (resp. output)।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- আকার: একটি মানের প্রতিটি উপাদানের আকৃতি। এই attr-এর দৈর্ঘ্য অবশ্যই 0 বা component_types-এর দৈর্ঘ্যের সমান হতে হবে। যদি এই attr-এর দৈর্ঘ্য 0 হয়, তাহলে সারির উপাদানগুলির আকার সীমাবদ্ধ থাকে না এবং একটি সময়ে শুধুমাত্র একটি উপাদান সারিবদ্ধ হতে পারে।
ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs
):
- component_types: একটি মানের প্রতিটি উপাদানের ধরন।
- ক্ষমতা: এই সারিতে থাকা উপাদানের সংখ্যার উপরের সীমা। নেতিবাচক সংখ্যা মানে কোন সীমা.
- ধারক: খালি না হলে, এই সারিটি প্রদত্ত পাত্রে স্থাপন করা হয়। অন্যথায়, একটি ডিফল্ট ধারক ব্যবহার করা হয়।
- shared_name: খালি না থাকলে, এই সারিটি একাধিক সেশনে প্রদত্ত নামের অধীনে ভাগ করা হবে।
রিটার্ন:
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
অগ্রাধিকার সারি
PriorityQueue(
const ::tensorflow::Scope & scope,
const gtl::ArraySlice< PartialTensorShape > & shapes
)
নোড
::tensorflow::Node * node() const
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
ক্ষমতা
Attrs Capacity(
int64 x
)
কম্পোনেন্ট টাইপস
Attrs ComponentTypes(
const DataTypeSlice & x
)
ধারক
Attrs Container(
StringPiece x
)
শেয়ার করা নাম
Attrs SharedName(
StringPiece x
)
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::PriorityQueue Class Reference\n\ntensorflow::ops::PriorityQueue\n==============================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nA queue that produces elements sorted by the first component value.\n\nSummary\n-------\n\nNote that the [PriorityQueue](/versions/r2.1/api_docs/cc/class/tensorflow/ops/priority-queue#classtensorflow_1_1ops_1_1_priority_queue) requires the first component of any element to be a scalar int64, in addition to the other elements declared by component_types. Therefore calls to Enqueue and EnqueueMany (resp. Dequeue and DequeueMany) on a [PriorityQueue](/versions/r2.1/api_docs/cc/class/tensorflow/ops/priority-queue#classtensorflow_1_1ops_1_1_priority_queue) will all require (resp. output) one extra entry in their input (resp. output) lists.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\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\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs)):\n\n- component_types: The type of each component in a value.\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.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| [PriorityQueue](#classtensorflow_1_1ops_1_1_priority_queue_1a48d6f04225414471ca632c2c2f7fa61f)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const gtl::ArraySlice\u003c PartialTensorShape \u003e & shapes)` ||\n| [PriorityQueue](#classtensorflow_1_1ops_1_1_priority_queue_1a077fbbd3ddd4d6bfcc097cd3cc1b6707)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const gtl::ArraySlice\u003c PartialTensorShape \u003e & shapes, const `[PriorityQueue::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [handle](#classtensorflow_1_1ops_1_1_priority_queue_1a7c9339da7e19f49ed3ba718fa3abbc03) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_priority_queue_1a5117c5ab1c0164f94212f42c9d5e7e2e) | [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_priority_queue_1a1106c32e99fdb703d51f0ec5bc64bb14)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_priority_queue_1a7370046bb9ab89339a4cf36af96a2587)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_priority_queue_1a208f5da928335dc25e8cf5305a5de879)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_priority_queue_1a309e1701f67df0908bd467ef311b9a89)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) |\n| [ComponentTypes](#classtensorflow_1_1ops_1_1_priority_queue_1a4bf430a0014584ae607d39e9baf2bec2)`(const DataTypeSlice & x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) |\n| [Container](#classtensorflow_1_1ops_1_1_priority_queue_1aed5d6a8c02b6008dbc0bbd5244966901)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_priority_queue_1a27e53635a6e2a4732caef1194ed237b8)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::PriorityQueue::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs) | Optional attribute setters for [PriorityQueue](/versions/r2.1/api_docs/cc/class/tensorflow/ops/priority-queue#classtensorflow_1_1ops_1_1_priority_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### PriorityQueue\n\n```gdscript\n PriorityQueue(\n const ::tensorflow::Scope & scope,\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & shapes\n)\n``` \n\n### PriorityQueue\n\n```gdscript\n PriorityQueue(\n const ::tensorflow::Scope & scope,\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & shapes,\n const PriorityQueue::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### ComponentTypes\n\n```gdscript\nAttrs ComponentTypes(\n const DataTypeSlice & x\n)\n``` \n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]