温馨提示×

怎么查看tensorflow版本

小亿
102
2024-03-20 14:45:31
栏目: 深度学习

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

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

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

import tensorflow as tf
print(tf.__version__)

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

0