Skip to content

Commit

Permalink
Add a note in README.md regarding pre-import of backend (#863)
Browse files Browse the repository at this point in the history
With keras_core users has to import the backend first before importing keras_core. It has to be documented in README.md for better visibility and reach to the community.
  • Loading branch information
SuryanarayanaY authored Sep 11, 2023
1 parent 4b7ede4 commit 5404dfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ os.environ["KERAS_BACKEND"] = "jax"

import keras_core as keras
```

**Note:** The backend must be configured before importing keras_core, and the backend cannot be changed after
the package has been imported.
## Backwards compatibility

Keras Core is intended to work as a drop-in replacement for `tf.keras` (when using the TensorFlow backend). Just take your
Expand Down

0 comments on commit 5404dfe

Please sign in to comment.