Keras or tf.keras?
Another legitimate question is whether you should use Keras with TensorFlow as a backend or, instead, use the APIs in tf.keras
directly available in TensorFlow. Note that there is not a 1:1 correspondence between Keras and tf.keras
. Many endpoints in tf.keras
are not implemented in Keras and tf.Keras
does not support multiple backends as Keras. So, Keras or tf.keras
? My suggestion is the second option rather than the first one. tf.keras
has multiple advantages over Keras, consisting of TensorFlow enhancements discussed in this chapter (eager execution; native support for distributed training, including training on TPUs; and support for the TensorFlow SavedModel exchange format). However, the first option is still the most relevant one if you plan to write highly portable code that can run on multiple backends, including Google TensorFlow, Microsoft CNTK, Amazon MXnet, and Theano. Note that Keras is an independent open source project, and its development is not dependent...