সতর্কতা: এই APIটি বাতিল করা হয়েছে এবং প্রতিস্থাপন স্থিতিশীল হওয়ার পরে TensorFlow এর ভবিষ্যতের সংস্করণে সরানো হবে।
Operation
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Tensors এ গণনা সম্পাদন করে।
একটি অপারেশন ইনপুট হিসাবে শূন্য বা তার বেশি Tensor
s (অন্যান্য অপারেশন দ্বারা উত্পাদিত) নেয় এবং আউটপুট হিসাবে শূন্য বা তার বেশি Tensor
তৈরি করে।
পাবলিক পদ্ধতি
বিমূর্ত int | inputListLength (স্ট্রিং নাম) এই ক্রিয়াকলাপের জন্য টেনসরের প্রদত্ত ইনপুট তালিকার আকার প্রদান করে। |
বিমূর্ত স্ট্রিং | নাম () অপারেশনের পুরো নাম প্রদান করে। |
বিমূর্ত int | সংখ্যা আউটপুট () এই অপারেশন দ্বারা উত্পাদিত টেনসরের সংখ্যা প্রদান করে। |
বিমূর্ত <T> আউটপুট <T> | আউটপুট (int idx) এই অপারেশন দ্বারা উত্পাদিত টেনসরগুলির একটিতে একটি প্রতীকী হ্যান্ডেল ফেরত দেয়৷ |
বিমূর্ত আউটপুট[] <?> | আউটপুটলিস্ট (int idx, int length) এই ক্রিয়াকলাপ দ্বারা উত্পাদিত টেনসরগুলির একটি তালিকায় প্রতীকী হ্যান্ডেলগুলি ফিরিয়ে দেয়৷ |
বিমূর্ত int | |
বিমূর্ত স্ট্রিং | প্রকার () অপারেশনের ধরন প্রদান করে, অর্থাৎ, অপারেশন দ্বারা সম্পাদিত গণনার নাম। |
পাবলিক পদ্ধতি
এই ক্রিয়াকলাপের জন্য টেনসরের প্রদত্ত ইনপুট তালিকার আকার প্রদান করে।
একটি অপারেশনে একাধিক নামযুক্ত ইনপুট থাকে, যার প্রতিটিতে হয় একটি একক টেনসর বা টেনসরগুলির একটি তালিকা থাকে। এই পদ্ধতিটি অপারেশনের একটি নির্দিষ্ট নামযুক্ত ইনপুটের জন্য টেনসরের তালিকার আকার প্রদান করে।
পরামিতি
নাম | এই অপারেশনের জন্য টেনসরের তালিকার শনাক্তকারী (যার মধ্যে অনেকগুলি থাকতে পারে) ইনপুট। |
---|
রিটার্নস
- এই নামযুক্ত ইনপুট দ্বারা উত্পাদিত টেনসরের তালিকার আকার।
নিক্ষেপ করে
অবৈধ আর্গুমেন্ট ব্যতিক্রম | যদি এই অপারেশনটির প্রদত্ত নামের সাথে কোনো ইনপুট না থাকে। |
---|
সর্বজনীন বিমূর্ত স্ট্রিং নাম ()
অপারেশনের পুরো নাম প্রদান করে।
সর্বজনীন বিমূর্ত int numOutputs ()
এই অপারেশন দ্বারা উত্পাদিত টেনসরের সংখ্যা প্রদান করে।
সর্বজনীন বিমূর্ত আউটপুট <T> আউটপুট (int idx)
এই অপারেশন দ্বারা উত্পাদিত টেনসরগুলির একটিতে একটি প্রতীকী হ্যান্ডেল ফেরত দেয়৷
সতর্কতা: টেনসরের ধরনটি T-এর সাথে মেলে কিনা তা পরীক্ষা করে না। এই পদ্ধতিটিকে অনুমান করার পরিবর্তে একটি স্পষ্ট টাইপ প্যারামিটার দিয়ে কল করার পরামর্শ দেওয়া হয়, যেমন operation.<Integer>output(0)
পরামিতি
idx | এই অপারেশন দ্বারা উত্পাদিত আউটপুট মধ্যে আউটপুট সূচক. |
---|
সর্বজনীন বিমূর্ত আউটপুট [] <?> আউটপুট তালিকা (int idx, int length)
এই ক্রিয়াকলাপ দ্বারা উত্পাদিত টেনসরগুলির একটি তালিকায় প্রতীকী হ্যান্ডেলগুলি ফিরিয়ে দেয়৷
পরামিতি
idx | তালিকার প্রথম টেনসরের সূচক |
---|
দৈর্ঘ্য | তালিকায় টেনসরের সংখ্যা |
---|
সর্বজনীন বিমূর্ত int outputListLength (স্ট্রিং নাম)
এই অপারেশন দ্বারা উত্পাদিত টেনসরের তালিকার আকার প্রদান করে।
একটি অপারেশনের একাধিক নামযুক্ত আউটপুট রয়েছে, যার প্রতিটি একটি একক টেনসর বা টেনসরগুলির একটি তালিকা তৈরি করে। এই পদ্ধতিটি অপারেশনের একটি নির্দিষ্ট নামকৃত আউটপুটের জন্য টেনসরের তালিকার আকার প্রদান করে।
পরামিতি
নাম | এই অপারেশন দ্বারা উত্পাদিত টেনসরগুলির তালিকার (যার মধ্যে অনেকগুলি থাকতে পারে) সনাক্তকারী৷ |
---|
রিটার্নস
- এই নামযুক্ত আউটপুট দ্বারা উত্পাদিত টেনসরের তালিকার আকার।
নিক্ষেপ করে
অবৈধ আর্গুমেন্ট ব্যতিক্রম | যদি এই অপারেশনটির প্রদত্ত নামের সাথে কোন আউটপুট না থাকে। |
---|
সর্বজনীন বিমূর্ত স্ট্রিং টাইপ ()
অপারেশনের ধরন প্রদান করে, অর্থাৎ, অপারেশন দ্বারা সম্পাদিত গণনার নাম।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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,["# Operation\n\npublic interface **Operation** \n\n|---|---|---|\n| Known Indirect Subclasses [GraphOperation](/api_docs/java/org/tensorflow/GraphOperation) |----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| | [GraphOperation](/api_docs/java/org/tensorflow/GraphOperation) | Implementation for an [Operation](/api_docs/java/org/tensorflow/Operation) added as a node to a [Graph](/api_docs/java/org/tensorflow/Graph). | |||\n\nPerforms computation on Tensors.\n\nAn Operation takes zero or more [Tensor](/api_docs/java/org/tensorflow/Tensor)s (produced by other Operations) as input, and\nproduces zero or more [Tensor](/api_docs/java/org/tensorflow/Tensor)s as output.\n\n\u003cbr /\u003e\n\n### Public Methods\n\n|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [inputListLength](/api_docs/java/org/tensorflow/Operation#inputListLength(java.lang.String))(String name) Returns the size of the given inputs list of Tensors for this operation. |\n| abstract String | [name](/api_docs/java/org/tensorflow/Operation#name())() Returns the full name of the Operation. |\n| abstract int | [numOutputs](/api_docs/java/org/tensorflow/Operation#numOutputs())() Returns the number of tensors produced by this operation. |\n| abstract \\\u003cT\\\u003e [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [output](/api_docs/java/org/tensorflow/Operation#output(int))(int idx) Returns a symbolic handle to one of the tensors produced by this operation. |\n| abstract [Output\\[\\]](/api_docs/java/org/tensorflow/Output)\\\u003c?\\\u003e | [outputList](/api_docs/java/org/tensorflow/Operation#outputList(int,%20int))(int idx, int length) Returns symbolic handles to a list of tensors produced by this operation. |\n| abstract int | [outputListLength](/api_docs/java/org/tensorflow/Operation#outputListLength(java.lang.String))(String name) Returns the size of the list of Tensors produced by this operation. |\n| abstract String | [type](/api_docs/java/org/tensorflow/Operation#type())() Returns the type of the operation, i.e., the name of the computation performed by the operation. |\n\nPublic Methods\n--------------\n\n#### public abstract int\n**inputListLength**\n(String name)\n\nReturns the size of the given inputs list of Tensors for this operation.\n\nAn Operation has multiple named inputs, each of which contains either a single tensor or a\nlist of tensors. This method returns the size of the list of tensors for a specific named input\nof the operation.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| name | identifier of the list of tensors (of which there may be many) inputs to this operation. |\n|------|------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- the size of the list of Tensors produced by this named input. \n\n##### Throws\n\n| IllegalArgumentException | if this operation has no input with the provided name. |\n|--------------------------|--------------------------------------------------------|\n\n#### public abstract String\n**name**\n()\n\nReturns the full name of the Operation. \n\n#### public abstract int\n**numOutputs**\n()\n\nReturns the number of tensors produced by this operation. \n\n#### public abstract [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e\n**output**\n(int idx)\n\nReturns a symbolic handle to one of the tensors produced by this operation.\n\nWarning: Does not check that the type of the tensor matches T. It is recommended to call\nthis method with an explicit type parameter rather than letting it be inferred, e.g. `operation.<Integer>output(0)`\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| idx | The index of the output among the outputs produced by this operation. |\n|-----|-----------------------------------------------------------------------|\n\n#### public abstract [Output\\[\\]](/api_docs/java/org/tensorflow/Output)\\\u003c?\\\u003e\n**outputList**\n(int idx, int length)\n\nReturns symbolic handles to a list of tensors produced by this operation. \n\n##### Parameters\n\n| idx | index of the first tensor of the list |\n| length | number of tensors in the list |\n|--------|---------------------------------------|\n\n##### Returns\n\n- array of `Output` \n\n#### public abstract int\n**outputListLength**\n(String name)\n\nReturns the size of the list of Tensors produced by this operation.\n\nAn Operation has multiple named outputs, each of which produces either a single tensor or a\nlist of tensors. This method returns the size of the list of tensors for a specific named\noutput of the operation.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| name | identifier of the list of tensors (of which there may be many) produced by this operation. |\n|------|--------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- the size of the list of Tensors produced by this named output. \n\n##### Throws\n\n| IllegalArgumentException | if this operation has no output with the provided name. |\n|--------------------------|---------------------------------------------------------|\n\n#### public abstract String\n**type**\n()\n\nReturns the type of the operation, i.e., the name of the computation performed by the\noperation."]]