tf.keras.models.load_model

View source on GitHub

Loads a model saved via save_model.

tf.keras.models.load_model(
    filepath, custom_objects=None, compile=True
)

Arguments:

Returns:

A Keras model instance. If an optimizer was found as part of the saved model, the model is already compiled. Otherwise, the model is uncompiled and a warning will be displayed. When compile is set to False, the compilation is omitted without any warning.

Raises: