繁体   English   中英

如何找到给定的 tf-nightly (tensorflow nightly build) 的 git commit 来自什么?

[英]How to find what git commit a given tf-nightly (tensorflow nightly build) is coming from?

您可以通过以下方式安装每晚构建:

pip install tf-nightly

如何确定这是来自哪个代码提交? 我已经从 github tensorflow 分支查看了他的标签,但没有看到任何与 REPL 中显示的tf.__version__对应的标签。

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'

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

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM