Star
About Keras Getting started Developer guides Keras API reference Models API The Model class The Sequential class Model training APIs Saving & serialization Layers API Callbacks API Optimizers Metrics Losses Data loading Built-in small datasets Keras Applications Mixed precision Utilities KerasTuner KerasCV KerasNLP Code examples Why choose Keras? Community & governance Contributing to Keras KerasTuner KerasCV KerasNLP
ยป Keras API reference / Models API / Saving & serialization

Saving & serialization

Whole model saving & loading

  • save method
  • save_model function
  • load_model function

Weights-only saving & loading

  • get_weights method
  • set_weights method
  • save_weights method
  • load_weights method

Model config serialization

  • get_config method
  • from_config method
  • clone_model function

Model export for inference

  • ExportArchive class

Serialization utilities

  • serialize_keras_object function
  • deserialize_keras_object function
  • custom_object_scope class
  • get_custom_objects function
  • register_keras_serializable function
Saving & serialization
Whole model saving & loading
Weights-only saving & loading
Model config serialization
Model export for inference
Serialization utilities
Terms | Privacy