I just upgraded my tf from 1.0 to tf 1.3 (pip install --upgrade tensorflow) . I know keras 2.0 became part of tensorflow since tf version 1.2. However, when I import keras and check its version it still shows 1.2. Am I supposed to upgrade keras also? if so, then what does "the Keras API will now become available directly as part of TensorFlow, starting with TensorFlow 1.2" mean?
Nope, you don't need to install keras 2.0 separately. (See: https://www.tensorflow.org/guide/keras)
Do this:
import tensorflow as tf
model = tf.keras.Sequential()
Don't do this (Unless you really need framework independent code):
import keras
model = keras.Sequential()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With