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'

相关推荐
小兵张健3 小时前
35岁程序员的春天来了
人工智能
大怪v4 小时前
AI抢饭?前端佬:我要验牌!
前端·人工智能·程序员
冬奇Lab4 小时前
OpenClaw 深度解析(六):节点、Canvas 与子 Agent
人工智能·开源
刀法如飞5 小时前
AI提示词框架深度对比分析
人工智能·ai编程
IT_陈寒7 小时前
Python开发者必知的5大性能陷阱:90%的人都踩过的坑!
前端·人工智能·后端
1G7 小时前
openclaw控制浏览器/自动化的playwright MCP + Mcporter方案实现
人工智能
踩着两条虫7 小时前
VTJ.PRO 双向代码转换原理揭秘
前端·vue.js·人工智能
扉川川7 小时前
OpenClaw 架构解析:一个生产级 AI Agent 是如何设计的
前端·人工智能
Flittly7 小时前
【从零手写 ClaudeCode:learn-claude-code 项目实战笔记】(3)TodoWrite (待办写入)
python·agent
星浩AI8 小时前
让模型自己写 Skills——从素材到自动生成工作流
人工智能·后端·agent