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'

相关推荐
一木 之林2 分钟前
李沐《动手学深度学习》知识卡合集:从 Softmax 回归到房价实战(第24-50集)
开发语言·c++·人工智能
Thomas.Sir3 分钟前
第42课:TensorFlow|计算机视觉实战二【图像分割基础流程与数据标注规范】
人工智能·计算机视觉·tensorflow
Alphapeople5 分钟前
路径规划算法的python实现
开发语言·python·算法
旋生万物11 分钟前
圈道裂痕——用 Python 验证素数分布的螺旋生成论判据
开发语言·python·数论·素数·cci·可计算数学
RobinDevNotes16 分钟前
Palmier Pro:AI时代的Mac视频编辑器
人工智能·ceph·macos·ai·音视频·视频编辑·mcp
阿洛学长16 分钟前
Python笔记:dir() 和 help() 完整用法(适配Python二级 + IDLE实操)
服务器·笔记·python
AIGC大时代18 分钟前
证据综合 × AI:BrainX 选型表、人工终裁与可审计产物
人工智能·brainx·证据综合·人工终裁
粉色大象19 分钟前
handdrawn‑architecture‑video:开源SVG架构图转手绘4K动画视频|本地AI Agent Skill
人工智能·ai·ai作画·系统架构·开源·aigc·音视频
Jialu.23 分钟前
第2篇:LLM 结构化输出实战:Pydantic + Function Calling 告别“解析 JSON 地狱“
python·langchain
云生信23 分钟前
服务器上新 OmicOS,体验生信 AI 计算
运维·服务器·人工智能