怎么查看tensorflow版本

avatar
作者
筋斗云
阅读量:0

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

1. 打开Python交互式环境,可以使用命令行工具或者Jupyter Notebook。

2. 导入TensorFlow库:`import tensorflow as tf`

3. 使用`tf.__version__`命令来查看TensorFlow的版本号。

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

```

import tensorflow as tf

print(tf.__version__)

```

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

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!