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'

相关推荐
科技小E4 分钟前
口罩佩戴检测算法AI智能分析网关V4工厂/工业等多场景守护公共卫生安全
网络·人工智能
说私域9 分钟前
基于定制开发开源AI智能名片S2B2C商城小程序的首屏组件优化策略研究
人工智能·小程序·开源·零售
vlln14 分钟前
2025年与2030年AI及AI智能体 (Agent) 市场份额分析报告
人工智能·深度学习·神经网络·ai
Amo Xiang22 分钟前
《100天精通Python——基础篇 2025 第5天:巩固核心知识,选择题实战演练基础语法》
python·选择题·基础语法
江梦寻31 分钟前
MacOS下Homebrew国内镜像加速指南(2025最新国内镜像加速)
开发语言·后端·python·macos·架构·策略模式
霖檬ing34 分钟前
Python——MySQL远程控制
开发语言·python·mysql
miniwa38 分钟前
Python编程精进:CSV 模块
python
栗克39 分钟前
Halcon 图像预处理②
人工智能·计算机视觉·halcon
互联网全栈架构2 小时前
遨游Spring AI:第一盘菜Hello World
java·人工智能·后端·spring
m0_465215792 小时前
大语言模型解析
人工智能·语言模型·自然语言处理