Tensorflow小技巧01:检测本地Tensorflow的版本

前言:

以Pycharm为例,Windwos10系统,检测本地环境的Tensorflow的版本:


1 打开Pycharm窗口

2 在窗口中输入:

复制代码
python

Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

3 引入tensorflow:

复制代码
>>> import tensorflow as tf

2024-04-18 09:53:56.814702: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.

2024-04-18 09:53:58.376064: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.

4 输入版本查询:

复制代码
>>> tf.__version__   

笔者的版本:

'2.16.1'

相关推荐
weixin_42499936几秒前
如何正确实现“破纪录次数统计”算法(高低分突破计数)
jvm·数据库·python
weixin_586061461 分钟前
mysqlSQL执行后连接未断开耗尽资源_优化代码中的连接释放机制
jvm·数据库·python
沪漂阿龙1 分钟前
从输入到输出:一文搞懂 LangChain Model I/O 的核心玩法
人工智能·langchain
Wyz201210242 分钟前
Golang interface底层实现原理_Golang接口原理教程【核心】
jvm·数据库·python
qq_372154232 分钟前
宝塔面板如何快速找回前一天误删的极其重要的网站源码
jvm·数据库·python
Shorasul2 分钟前
Vue3 监听器 watch 怎么监听 Pinia 中的状态?跨模块联动开发教程
jvm·数据库·python
m0_734949793 分钟前
JavaScript 中的 setTimeout 是否依赖系统时钟?
jvm·数据库·python
xwz小王子3 分钟前
生成式机器人策略的仿真 - 真实协同训练:结构化表征对齐
人工智能·深度学习·机器人
2301_817672264 分钟前
Python Selenium怎么定位元素_By.XPATH与By.CSS_SELECTOR操作DOM节点
jvm·数据库·python
2501_914245934 分钟前
JavaScript中闭包结合代理模式Proxy实现数据监听
jvm·数据库·python