সতর্কতা: এই APIটি বাতিল করা হয়েছে এবং প্রতিস্থাপন স্থিতিশীল হওয়ার পরে TensorFlow এর ভবিষ্যতের সংস্করণে সরানো হবে।
Output
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি Operation
দ্বারা উত্পাদিত একটি টেনসরের একটি প্রতীকী হ্যান্ডেল।
একটি Output<T>
Tensor<T>
. একটি Session
Operation
চালানোর মাধ্যমে টেনসরের মান গণনা করা হয়।
Operand
ইন্টারফেস বাস্তবায়নের মাধ্যমে, এই শ্রেণীর উদাহরণগুলিও Op
থেকে অপারেন্ড হিসাবে কাজ করে।
পাবলিক পদ্ধতি
আউটপুট <T> | |
ডেটা টাইপ | ডেটা টাইপ () এই আউটপুট দ্বারা উল্লেখিত টেনসরের ডেটা টাইপ প্রদান করে। |
বুলিয়ান | |
int | |
int | সূচক () অপারেশনের আউটপুটগুলিতে সূচী প্রদান করে। |
অপারেশন | অপ () এই আউটপুট দ্বারা উল্লেখিত টেনসর তৈরি করা অপারেশন প্রদান করে। |
আকৃতি | আকৃতি () এই আউটপুট দ্বারা উল্লেখিত টেনসরের (সম্ভবত আংশিকভাবে পরিচিত) আকৃতি প্রদান করে। |
টেনসর <T> | টেনসর () এই আউটপুটে টেনসর রিটার্ন করে। |
স্ট্রিং | |
উত্তরাধিকারসূত্রে প্রাপ্ত পদ্ধতি
java.lang.Object ক্লাস থেকে বুলিয়ান | সমান (অবজেক্ট arg0) |
চূড়ান্ত ক্লাস<?> | getClass () |
int | হ্যাশ কোড () |
চূড়ান্ত শূন্যতা | অবহিত () |
চূড়ান্ত শূন্যতা | সকলকে অবহিত করুন () |
স্ট্রিং | স্ট্রিং () |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0, int arg1) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন () |
পাবলিক পদ্ধতি
সর্বজনীন আউটপুট <T> হিসাবে আউটপুট ()
একটি টেনসরের প্রতীকী হ্যান্ডেল প্রদান করে।
TensorFlow অপারেশনের ইনপুট হল অন্য TensorFlow অপারেশনের আউটপুট। এই পদ্ধতিটি একটি প্রতীকী হ্যান্ডেল পেতে ব্যবহৃত হয় যা ইনপুটের গণনাকে প্রতিনিধিত্ব করে।
সর্বজনীন ডেটা টাইপ ডেটা টাইপ ()
এই আউটপুট দ্বারা উল্লেখিত টেনসরের ডেটা টাইপ প্রদান করে।
পাবলিক বুলিয়ান সমান (অবজেক্ট o)
পাবলিক int সূচক ()
অপারেশনের আউটপুটগুলিতে সূচী প্রদান করে।
পাবলিক অপারেশন অপারেশন ()
এই আউটপুট দ্বারা উল্লেখিত টেনসর তৈরি করা অপারেশন প্রদান করে।
সর্বজনীন আকৃতি আকৃতি ()
এই আউটপুট দ্বারা উল্লেখিত টেনসরের (সম্ভবত আংশিকভাবে পরিচিত) আকৃতি প্রদান করে।
পাবলিক টেনসর <T> টেনসর ()
এই আউটপুটে টেনসর রিটার্ন করে।
এই অপারেশনটি শুধুমাত্র সাগ্রহে সম্পাদিত একটি অপারেশনের আউটপুটগুলিতে সমর্থিত। গ্রাফ পরিবেশের জন্য, Session.Runner.fetch(Output)
ব্যবহার করে একটি সেশন চালিয়ে আউটপুট টেনসর আনতে হবে।
নিক্ষেপ করে
অবৈধ রাজ্য ব্যতিক্রম | যদি এই আউটপুট একটি গ্রাফ থেকে ফলাফল |
---|
পাবলিক স্ট্রিং থেকে স্ট্রিং ()
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Output\n\npublic final class **Output** \nA symbolic handle to a tensor produced by an [Operation](/api_docs/java/org/tensorflow/Operation).\n\nAn `Output<T>` is a symbolic handle to a `Tensor<T>`. The value of the tensor is\ncomputed by executing the [Operation](/api_docs/java/org/tensorflow/Operation) in a [Session](/api_docs/java/org/tensorflow/Session).\n\nBy implementing the [Operand](/api_docs/java/org/tensorflow/Operand) interface, instances of this class also act as operands to\n[Op](/api_docs/java/org/tensorflow/op/Op) instances.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Public Methods\n\n|------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [asOutput](/api_docs/java/org/tensorflow/Output#asOutput())() Returns the symbolic handle of a tensor. |\n| [DataType](/api_docs/java/org/tensorflow/DataType) | [dataType](/api_docs/java/org/tensorflow/Output#dataType())() Returns the DataType of the tensor referred to by this Output. |\n| boolean | [equals](/api_docs/java/org/tensorflow/Output#equals(java.lang.Object))(Object o) |\n| int | [hashCode](/api_docs/java/org/tensorflow/Output#hashCode())() |\n| int | [index](/api_docs/java/org/tensorflow/Output#index())() Returns the index into the outputs of the Operation. |\n| [Operation](/api_docs/java/org/tensorflow/Operation) | [op](/api_docs/java/org/tensorflow/Output#op())() Returns the Operation that will produce the tensor referred to by this Output. |\n| [Shape](/api_docs/java/org/tensorflow/Shape) | [shape](/api_docs/java/org/tensorflow/Output#shape())() Returns the (possibly partially known) shape of the tensor referred to by this Output. |\n| [Tensor](/api_docs/java/org/tensorflow/Tensor)\\\u003cT\\\u003e | [tensor](/api_docs/java/org/tensorflow/Output#tensor())() Returns the tensor at this output. |\n| String | [toString](/api_docs/java/org/tensorflow/Output#toString())() |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [org.tensorflow.Operand](/api_docs/java/org/tensorflow/Operand) \n\n|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| abstract [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [asOutput](/api_docs/java/org/tensorflow/Operand#asOutput())() Returns the symbolic handle of a tensor. |\n\nPublic Methods\n--------------\n\n#### public [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e\n**asOutput**\n()\n\nReturns the symbolic handle of a tensor.\n\nInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is\nused to obtain a symbolic handle that represents the computation of the input.\n\n\u003cbr /\u003e\n\n#### public [DataType](/api_docs/java/org/tensorflow/DataType)\n**dataType**\n()\n\nReturns the DataType of the tensor referred to by this Output. \n\n#### public boolean\n**equals**\n(Object o)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| o | |\n|---|---|\n\n#### public int\n**hashCode**\n()\n\n\u003cbr /\u003e\n\n#### public int\n**index**\n()\n\nReturns the index into the outputs of the Operation. \n\n#### public [Operation](/api_docs/java/org/tensorflow/Operation)\n**op**\n()\n\nReturns the Operation that will produce the tensor referred to by this Output. \n\n#### public [Shape](/api_docs/java/org/tensorflow/Shape)\n**shape**\n()\n\nReturns the (possibly partially known) shape of the tensor referred to by this Output. \n\n#### public [Tensor](/api_docs/java/org/tensorflow/Tensor)\\\u003cT\\\u003e\n**tensor**\n()\n\nReturns the tensor at this output.\n\nThis operation is only supported on the outputs of an operation executed eagerly. For graph\nenvironments, output tensors must be fetched by running a session, using [Session.Runner.fetch(Output)](/api_docs/java/org/tensorflow/Session.Runner#fetch(org.tensorflow.Output\u003c?\u003e)).\n\n\u003cbr /\u003e\n\n##### Returns\n\n- tensor \n\n##### Throws\n\n| IllegalStateException | if this output results from a graph |\n|-----------------------|-------------------------------------|\n\n##### See Also\n\n- [EagerSession](/api_docs/java/org/tensorflow/EagerSession) \n\n#### public String\n**toString**\n()\n\n\u003cbr /\u003e"]]