This commit is contained in:
Francois Chollet 2023-09-11 09:39:48 -07:00
parent 064c4d088c
commit 9af030877e
2 changed files with 4 additions and 2 deletions

@ -49,8 +49,10 @@ os.environ["KERAS_BACKEND"] = "jax"
import keras_core as keras import keras_core as keras
``` ```
**Note:** The backend must be configured before importing keras_core, and the backend cannot be changed after
**Note:** The backend must be configured before importing `keras_core`, and the backend cannot be changed after
the package has been imported. the package has been imported.
## Backwards compatibility ## Backwards compatibility
Keras Core is intended to work as a drop-in replacement for `tf.keras` (when using the TensorFlow backend). Just take your Keras Core is intended to work as a drop-in replacement for `tf.keras` (when using the TensorFlow backend). Just take your

@ -108,7 +108,7 @@ def save_model(model, filepath, overwrite=True, **kwargs):
f"format (recommended) or a `.h5` extension. " f"format (recommended) or a `.h5` extension. "
"Use `tf.saved_model.save()` if you want to export a SavedModel " "Use `tf.saved_model.save()` if you want to export a SavedModel "
"for use with TFLite/TFServing/etc. " "for use with TFLite/TFServing/etc. "
f"Received: filepath = {filepath}." f"Received: filepath={filepath}."
) )