What is the difference between keras and tf.keras?

后端 未结 3 1185
后悔当初
后悔当初 2020-12-09 13:43

I\'m learning TensorFlow and Keras. I\'d like to try https://www.amazon.com/Deep-Learning-Python-Francois-Chollet/dp/1617294438/, and it seems to be written in Keras.

<
3条回答
  •  一整个雨季
    2020-12-09 13:55

    The difference between tf.keras and keras is the Tensorflow specific enhancement to the framework.

    keras is an API specification that describes how a Deep Learning framework should implement certain part, related to the model definition and training. Is framework agnostic and supports different backends (Theano, Tensorflow, ...)

    tf.keras is the Tensorflow specific implementation of the Keras API specification. It adds the framework the support for many Tensorflow specific features like: perfect support for tf.data.Dataset as input objects, support for eager execution, ...

    In Tensorflow 2.0 tf.keras will be the default and I highly recommend to start working using tf.keras

提交回复
热议问题