python - 每个 TensorFlow 版本使用哪个 TensorFlow 模型版本?

标签 python tensorflow

我使用的是旧版本的 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/

相关文章:

python - Django : Joining two tables and using extra field from second table for order_by

python - 是否可以在字符串上重载 ~ 运算符?

c++ - 如何将动态和静态二维数组作为空指针传递?

python - “zsh: illegal hardware instruction python” 在 macbook pro M1 上使用 Tensorflow

python - 监督数据集上的 TF2 padded_batch

c++ - ImportError : dynamic module does not define init function, 但确实如此

python - 输出在字符串中找到的特定单词(从列表中)

Python:中位数为三的快速排序

android - Tensorflow 对象检测 API 索引越界

machine-learning - tensorflow 似乎没有安装