What is the difference between Keras and tf.keras in TensorFlow 1.1+?

后端 未结 4 1371
生来不讨喜
生来不讨喜 2020-12-24 11:32

Now that TensorFlow 1.1 supports the Keras API under tf.contrib.keras, which one should I use if I intend to use Keras with a TF backend?

Is the t

4条回答
  •  梦毁少年i
    2020-12-24 12:10

    Recent François Chollet tweet suggests to use tf.keras.

    We recommend you switch your Keras code to tf.keras.

    Both Theano and CNTK are out of development. Meanwhile, as Keras backends, they represent less than 4% of Keras usage. The other 96% of users (of which more than half are already on tf.keras) are better served with tf.keras.

    Keras development will focus on tf.keras going forward.

    Importantly, we will seek to start developing tf.keras in its own standalone GitHub repository at keras-team/keras in order to make it much easier for 3rd party folks to contribute.

提交回复
热议问题