what's the difference between “import keras” and “import tensorflow.keras”

后端 未结 1 1116
别跟我提以往
别跟我提以往 2021-01-14 10:59

I was wondering, what\'s the difference between importing keras from tensorflow using import tensorflow.keras or just pip installing keras alone and importing i

相关标签:
1条回答
  • 2021-01-14 11:01

    Tensorflow.keras is an version of Keras API implemented specifically for use with Tensorflow. It is a part of Tensorflow repo and from TF version 2.0 will become main high level API replacing tf.layers and slim.

    The only reason to use standalone keras is to maintain framework-agnostic code, i.e. use it with another backend.

    0 讨论(0)
提交回复
热议问题