# SavedModelBundle.Loader

public static final class **SavedModelBundle.Loader** Options for loading a SavedModel.

### Public Methods

|---|---|
| [SavedModelBundle](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle) | [load](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader#load())() Load a `SavedModelBundle` with the configured options. |
| [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withConfigProto](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader#withConfigProto(byte[]))(byte\[\] configProto) Set configuration of the `Session` object created when loading the model. |
| [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withRunOptions](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader#withRunOptions(byte[]))(byte\[\] options) Sets options to use when executing model initialization operations. |
| [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader) | [withTags](https://www.tensorflow.org/versions/r2.11/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. |

### 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

#### public [SavedModelBundle](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle)
**load**
()

Load a `SavedModelBundle` with the configured options.

#### public [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader)
**withConfigProto**
(byte\[\] configProto)

Set configuration of the `Session` object created when loading the model.

##### Parameters

| configProto | Serialized [ConfigProto protocol buffer](https://www.tensorflow.org/code/tensorflow/core/protobuf/config.proto). |
|---|---|

#### public [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader)
**withRunOptions**
(byte\[\] options)

Sets options to use when executing model initialization operations.

##### Parameters

| options | Serialized [RunOptions protocol buffer](https://www.tensorflow.org/code/tensorflow/core/protobuf/config.proto). |
|---|---|

#### public [SavedModelBundle.Loader](https://www.tensorflow.org/versions/r2.11/api_docs/java/org/tensorflow/SavedModelBundle.Loader)
**withTags**
(String... tags)

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. |
|---|---|