如何查找给定的tf-nightly(每晚的Tensorflow Build)来自什么git commit?

时间:2019-03-27 15:04:22

标签: tensorflow

您可以通过以下方式安装夜间版本:

pip install tf-nightly

如何弄清楚这来自什么代码提交?我已经从github tensorflow分支中查看了他的标签,但没有看到与REPL中显示的tf.__version__相对应的任何标签。

2 个答案:

答案 0 :(得分:3)

python -c "import tensorflow as tf; print(tf.__git_version__, tf.__version__)"

在我的实验中打印了以下内容:

v1.12.1-25814-g2e81bc66c5 2.2.0-dev20200225

提交的SHA是结尾处的字符串,位于-g之后。在这种情况下,它是2e81bc66c5

使用tf_nightly-2.2.0.dev20200225时,可接受的答案对我不起作用。我只有AttributeError: module 'tensorflow' has no attribute 'VERSION'AttributeError: module 'tensorflow' has no attribute 'GIT_VERSION'

答案 1 :(得分:1)

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

从tensorflow新发行模板中: https://github.com/tensorflow/tensorflow/issues/new?template=00-bug-performance-issue.md

相关问题