You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,12 @@
20
20
21
21
* To continue using Keras 2.0, do the following.
22
22
23
-
* 1. Install tf-keras via pip install tf-keras~=2.16
23
+
* 1. Install `tf-keras` via `pip install tf-keras~=2.16`
24
24
25
-
1. To switch tf.keras to use Keras 2 (tf-keras), set the environment variable TF_USE_LEGACY_KERAS=1 directly or in your python program by import os;os.environ["TF_USE_LEGACY_KERAS"]=1. Please note that this will set it for all packages in your Python runtime program
25
+
1. To switch `tf.keras` to use Keras 2 (`tf-keras`), set the environment variable `TF_USE_LEGACY_KERAS=1` directly or in your python program with `import os;os.environ["TF_USE_LEGACY_KERAS"]="1"`. Please note that this will set it for all packages in your Python runtime program
26
26
27
-
* 1. Change import of keras from tensorflow as follows
28
-
*import tensorflow.keras as keras and import keras to import tf_keras as keras
27
+
1. Change the keras import: replace `import tensorflow.keras as keras` or `import keras` with `import tf_keras as keras`. Update any `tf.keras` references to `keras`.
28
+
29
29
* **Apple Silicon users:** If you previously installed TensorFlow using `pip install tensorflow-macos`, please update your installation method. Use `pip install tensorflow` from now on.
30
30
* **Mac x86 users:** Mac x86 builds are being deprecated and will no longer be
0 commit comments