SavedModelBundle.Loader
Stay organized with collections
Save and categorize content based on your preferences.
Options for loading a SavedModel.
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
Load a SavedModelBundle
with the configured options.
Set configuration of the Session
object created when loading the model.
Sets options to use when executing model initialization operations.
Sets the set of tags that identify the specific graph in the saved model to load.
Parameters
tags |
the tags identifying the specific MetaGraphDef to load.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-03-27 UTC.
[null,null,["Last updated 2023-03-27 UTC."],[],[],null,["# SavedModelBundle.Loader\n\npublic static final class **SavedModelBundle.Loader** \nOptions for loading a SavedModel. \n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SavedModelBundle](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle) | [load](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader#load())() Load a `SavedModelBundle` with the configured options. |\n| [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withConfigProto](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader#withConfigProto(byte[]))(byte\\[\\] configProto) Set configuration of the `Session` object created when loading the model. |\n| [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withRunOptions](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader#withRunOptions(byte[]))(byte\\[\\] options) Sets options to use when executing model initialization operations. |\n| [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withTags](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader#withTags(java.lang.String...))(String... tags) Sets the set of tags that identify the specific graph in the saved model to load. |\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 [SavedModelBundle](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle)\n**load**\n()\n\nLoad a `SavedModelBundle` with the configured options. \n\n#### public [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader)\n**withConfigProto**\n(byte\\[\\] configProto)\n\nSet configuration of the `Session` object created when loading the model. \n\n##### Parameters\n\n| configProto | Serialized [ConfigProto protocol buffer](https://www.tensorflow.org/code/tensorflow/core/protobuf/config.proto). |\n|-------------|------------------------------------------------------------------------------------------------------------------|\n\n#### public [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader)\n**withRunOptions**\n(byte\\[\\] options)\n\nSets options to use when executing model initialization operations. \n\n##### Parameters\n\n| options | Serialized [RunOptions protocol buffer](https://www.tensorflow.org/code/tensorflow/core/protobuf/config.proto). |\n|---------|-----------------------------------------------------------------------------------------------------------------|\n\n#### public [SavedModelBundle.Loader](/versions/r2.12/api_docs/java/org/tensorflow/SavedModelBundle.Loader)\n**withTags**\n(String... tags)\n\nSets the set of tags that identify the specific graph in the saved model to load. \n\n##### Parameters\n\n| tags | the tags identifying the specific MetaGraphDef to load. |\n|------|---------------------------------------------------------|"]]