273214 (9) [Avatar] Offline
I just discovered this, and thought others may not yet know this... Instead of

import keras

one can accomplish the same with:

import tensorflow as tf
keras = tf.contrib.keras

As I understand it, this version of Keras is being optimized to run with TensorFlow.

Eventually it will be moved from "contrib" to a standard part of TensorFlow, at which point you'll import it this way:

import tensorflow as tf
keras = tf.keras