SavedModelBundle.Loader

public static final class SavedModelBundle.Loader

Options for loading a SavedModel.

Public Methods

SavedModelBundle
load()
Load a SavedModelBundle with the configured options.
SavedModelBundle.Loader
withConfigProto(ConfigProto configProto)
Set configuration of the Session object created when loading the model.
SavedModelBundle.Loader
withRunOptions(RunOptions options)
Sets options to use when executing model initialization operations.
SavedModelBundle.Loader
withTags(String... tags)
Sets the set of tags that identify the specific graph in the saved model to load.

Inherited Methods

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 load ()

Load a SavedModelBundle with the configured options.

public SavedModelBundle.Loader withConfigProto (ConfigProto configProto)

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

Parameters
Returns
  • this object

public SavedModelBundle.Loader withRunOptions (RunOptions options)

Sets options to use when executing model initialization operations.

Parameters
Returns
  • this object

public SavedModelBundle.Loader withTags (String... tags)

Sets the set of tags that identify the specific graph in the saved model to load.

Has no effect if tags is null or empty

Parameters
tags the tags identifying the specific MetaGraphDef to load.
Returns
  • this object
Throws
IllegalArgumentException if tags are invalid