简体   繁体   English

Tensorflow 和 Keras 有什么区别?

[英]What is the difference between Tensorflow and Keras?

I am currently working with neural networks in keras and I know that it works with tensorflow in the back-end, I have it installed on the GPU, but I don't know if keras uses the GPU or if it is something completely different from tensorflow. I am currently working with neural networks in keras and I know that it works with tensorflow in the back-end, I have it installed on the GPU, but I don't know if keras uses the GPU or if it is something completely different from tensorflow。

TensorFlow is a mid-level framework that performs operations on tensors. TensorFlow 是一个对张量执行操作的中级框架。 Keras is a high-level API that simplifies the creation and training of neural networks. Keras 是一个高级 API,它简化了神经网络的创建和训练。 Keras doesn't do any of the tensor ops itself; Keras 本身不执行任何张量操作; it delegates those to its backend, which is a mid-level framework of your choosing: TensorFlow, CNTK, or Theano.它将这些委托给后端,这是您选择的中级框架:TensorFlow、CNTK 或 Theano。 Each of those frameworks can be configured to do the tensor ops in whatever ways they can (as far as I am aware, each of them can use either CPUs or GPUs).这些框架中的每一个都可以配置为以任何方式执行张量操作(据我所知,它们中的每一个都可以使用 CPU 或 GPU)。 Keras, however, doesn't really care how the ops get done.然而,Keras 并不真正关心操作是如何完成的。 It just tells the backend to do them, and they get done.它只是告诉后端去做它们,然后它们就完成了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 tensorflow.keras.layers 和 keras.layers 有什么区别? - What is the difference between tensorflow.keras.layers and keras.layers? 使用 CPU(在 Tensorflow 2.x 中)“Keras 后端 + Tensorflow”和“来自 Tensorflow 的 Keras”有什么区别 - What is difference between “Keras backend + Tensorflow” and “Keras from Tensorflow” using CPU(in Tensorflow 2.x) “tensorflow.math.multiply”和“tensorflow.keras.layers.multiply”有什么区别? - What is the difference between "tensorflow.math.multiply" and "tensorflow.keras.layers.multiply"? Keras输入层和Tensorflow占位符之间的差异 - Difference Between Keras Input Layer and Tensorflow Placeholders Tensorflow (v1.12.0) - keras.backend.clear_session() 和 tf.keras.backend.clear_session 有什么区别? - Tensorflow (v1.12.0) - what is the difference between keras.backend.clear_session() and tf.keras.backend.clear_session()? Keras:模型和层有什么区别? - Keras: What is the difference between model and layers? Keras 模型中的权重和变量有什​​么区别? - What is the difference between weights and variables in a Keras Model? 来自keras的Model.train_on_batch和来自tensorflow的Session.run([train_optimizer])有什么区别? - What is the difference between Model.train_on_batch from keras and Session.run([train_optimizer]) from tensorflow? tf.keras 和 tf.python.keras 有什么区别? - What is the difference between tf.keras and tf.python.keras? 在Tensorflow中,变量和张量之间有什么区别? - In Tensorflow, what is the difference between a Variable and a Tensor?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM