Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings


View source on GitHub

Class SaveOptions

Options for saving to SavedModel.


  • Class tf.compat.v1.saved_model.SaveOptions
  • Class tf.compat.v2.saved_model.SaveOptions

This function may be used in the options argument in functions that save a SavedModel (tf.saved_model.save, tf.keras.models.save_model).


View source


Creates an object that stores options for SavedModel saving.


  • namespace_whitelist: List of strings containing op namespaces to whitelist when saving a model. Saving an object that uses namespaced ops must explicitly add all namespaces to the whitelist. The namespaced ops must be registered into the framework when loading the SavedModel.

Class Members

  • namespace_whitelist