SavedModelBundle.Exporter
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সংরক্ষিত মডেল রপ্তানির জন্য বিকল্প।
উত্তরাধিকারসূত্রে প্রাপ্ত পদ্ধতি
java.lang.Object ক্লাস থেকে বুলিয়ান | সমান (অবজেক্ট arg0) |
চূড়ান্ত ক্লাস<?> | getClass () |
int | হ্যাশ কোড () |
চূড়ান্ত শূন্যতা | অবহিত () |
চূড়ান্ত শূন্যতা | সকলকে অবহিত করুন () |
স্ট্রিং | স্ট্রিং () |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0, int arg1) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন (দীর্ঘ arg0) |
চূড়ান্ত শূন্যতা | অপেক্ষা করুন () |
পাবলিক পদ্ধতি
সর্বজনীন শূন্য রপ্তানি ()
এক্সপোর্ট ডিরেক্টরিতে মডেলটি সংরক্ষণ করুন।
নিক্ষেপ করে
IOException | যদি সংরক্ষিত মডেল বা পরিবর্তনশীল অবস্থা ডিস্কে লেখা যাবে না |
---|
এই মডেলের একটি কংক্রিট ফাংশন সংরক্ষণ করুন।
কংক্রিট ফাংশনটি একটি স্বাক্ষর বহন করে (যেমন ব্যবহারকারী-বান্ধব ইনপুট এবং একটি গ্রাফে আউটপুট নামের তালিকা) এবং মডেলে সংরক্ষিত গ্রাফে একটি বৈধ সেশন।
দ্রষ্টব্য:অবশেষে, জাভা-এর জন্য টেনসরফ্লো পাইথন API-এর মতো ফাংশন অবজেক্টের রপ্তানিকে সমর্থন করবে কিন্তু এই মুহূর্তে শুধুমাত্র সেশন-কেন্দ্রিক মডেলগুলি সমর্থিত (যেমন মডেল যেগুলির একটি একক প্রধান গ্রাফ এবং এক বা একাধিক স্বাক্ষর রয়েছে)। এই মডেলগুলি TensorFlow 1.x বা TensorFlow 2.x অনুমানকারীদের দ্বারা রপ্তানি করা মডেলগুলির সাথে সামঞ্জস্যপূর্ণ৷
অতএব, একটি মডেলে রপ্তানি করা সমস্ত ফাংশন এই মুহূর্তে একই সেশন ভাগ করা উচিত নয়তো একটি ব্যতিক্রম নিক্ষেপ করা হবে৷
পরামিতি
ফাংশন | একটি ফাংশন একটি স্বাক্ষর বহন করে এবং গ্রাফে একটি বৈধ সেশন সংরক্ষণ করতে হবে৷ |
---|
নিক্ষেপ করে
অবৈধ আর্গুমেন্ট ব্যতিক্রম | যদি একই নামের একটি ফাংশন ইতিমধ্যে মডেলে যোগ করা হয় |
---|
অসমর্থিত অপারেশন ব্যতিক্রম | যদি এই ফাংশনটি এই মডেলে যোগ করা অন্যান্য ফাংশনের সাথে একই সেশন ভাগ না করে |
---|
ট্যাগগুলির সেট সেট করে যা সংরক্ষিত মডেলের নির্দিষ্ট গ্রাফটিকে সংরক্ষণ করতে সনাক্ত করে।
মনে রাখবেন যে এই API ব্যবহার করে প্রতি মডেলের শুধুমাত্র একটি গ্রাফ এই মুহূর্তে সংরক্ষণ করা যেতে পারে।
পরামিতি
ট্যাগ | সংরক্ষণ করার জন্য নির্দিষ্ট MetaGraphDef সনাক্তকারী ট্যাগ। |
---|
নিক্ষেপ করে
অবৈধ আর্গুমেন্ট ব্যতিক্রম | যদি ট্যাগগুলি অবৈধ হয় |
---|
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-27 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-27 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# SavedModelBundle.Exporter\n\npublic static final class **SavedModelBundle.Exporter** \nOptions for exporting a SavedModel. \n\n### Public Methods\n\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [export](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter#export())() Save the model into the export directory. |\n| [SavedModelBundle.Exporter](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter) | [withFunction](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter#withFunction(org.tensorflow.ConcreteFunction))([ConcreteFunction](/jvm/api_docs/java/org/tensorflow/ConcreteFunction) function) Save a concrete function of this model. |\n| [SavedModelBundle.Exporter](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter) | [withTags](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter#withTags(java.lang.String...))(String... tags) Sets the set of tags that identify the specific graph in the saved model to save. |\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\nPublic Methods\n--------------\n\n#### public void\n**export**\n()\n\nSave the model into the export directory. \n\n##### Throws\n\n| IOException | if saved model or variable state cannot be written on disk |\n|-------------|------------------------------------------------------------|\n\n#### public [SavedModelBundle.Exporter](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter)\n**withFunction**\n([ConcreteFunction](/jvm/api_docs/java/org/tensorflow/ConcreteFunction) function)\n\nSave a concrete function of this model.\n\nThe concrete function carries a signature (i.e. a list of user-friendly input and outputs\nnames to a graph) and a valid session to a graph to be saved in the model.\n\n*Note:Eventually, TensorFlow for Java will support the export of functions objects like\nthe Python API does but right now, only session-centric models are supported (i.e. models that\nhas a single main graph and one or more signatures). These models are compatible with those\nexported by TensorFlow 1.x or by TensorFlow 2.x estimators.\n\u003cbr /\u003e\nTherefore, all functions exported in a model should share the same session at the moment\nor an exception will be thrown.*\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| function | a function carrying a signature and a valid session to the graph to be saved |\n|----------|------------------------------------------------------------------------------|\n\n##### Returns\n\n- this object \n\n##### Throws\n\n| IllegalArgumentException | if a function with the same name has already been added to the model |\n| UnsupportedOperationException | if this function does not share the same session with the other functions added to this model |\n|-------------------------------|-----------------------------------------------------------------------------------------------|\n\n#### public [SavedModelBundle.Exporter](/jvm/api_docs/java/org/tensorflow/SavedModelBundle.Exporter)\n**withTags**\n(String... tags)\n\nSets the set of tags that identify the specific graph in the saved model to save.\n\nNote that only one graph per model can be saved right now using this API.\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| tags | the tags identifying the specific MetaGraphDef to save. |\n|------|---------------------------------------------------------|\n\n##### Returns\n\n- this object \n\n##### Throws\n\n| IllegalArgumentException | if tags are invalid |\n|--------------------------|---------------------|"]]