怎么查看tensorflow版本

lewis 2020-01-29 18次阅读

要查看TensorFlow的版本,可以通过以下步骤:

  1. 打开Python交互式环境,可以使用命令行工具或者Jupyter Notebook。
  2. 导入TensorFlow库:import tensorflow as tf
  3. 使用tf.__version__命令来查看TensorFlow的版本号。

例如,在Python交互式环境中输入以下代码:

import tensorflow as tf
print(tf.__version__)

运行后会输出当前安装的TensorFlow版本号。



发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。