我使用的是旧版本的 TensorFlow(例如 v1.4)。我想使用 TensorFlow 模型 ( https://github.com/tensorflow/models ) 中的模型,但我不确定模型的哪个版本对应于正确的 TensorFlow 版本。
我猜测 v1.4 TF 对应于 v1.4 TF 模型。但是这个假设对于v1.4之前的TF版本没有意义,比如v1.1。
有人知道这件事吗?
最佳答案
我问过自己同样的问题。 目前很难对模型进行精确分类。不过,我想我对此有大致的了解。
我们已经有了 Keras 2我们知道 TensorFlow 2.0 是 coming :
TensorFlow 2.0 will be a significant milestone, with a focus on ease of use. Here are some highlights of what users can expect with TensorFlow 2.0:
Eager execution is a central feature of 2.0. It aligns users’ expectations about the programming model better with TensorFlow practice and should make TensorFlow easier to learn and apply.
Support for more platforms and languages, and improved compatibility and parity between these components via standardization on exchange formats and alignment of APIs. We will remove deprecated APIs and reduce the amount of duplication, which has confused for users.
我目前使用的经验法则:
- 我使用
tf.keras.layers
而不是tf.layers
。这是因为 Keras 2 将成为新 TensorFlow 2.0 的核心部分。 - 我假设 models如果他们使用
tf.keras.layers
是新的
- 我经常启用急切执行。
关于python - 每个 TensorFlow 版本使用哪个 TensorFlow 模型版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49378458/