学堂 学堂 学堂公众号手机端

怎么查看tensorflow版本

lewis 2年前 (2023-05-25) 阅读数 7 #技术

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

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

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

import tensorflow as tf
print(tf.__version__)

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


版权声明

本文仅代表作者观点,不代表博信信息网立场。

热门