当前位置:网站首页>tensorflow报错:returned a result with an error set解决方案
tensorflow报错:returned a result with an error set解决方案
2022-04-22 04:06:00 【CHH3213】
参考资料
https://github.com/tensorflow/tensorflow/issues/55440
1. 问题描述
今天我在anaconda虚拟环境中安装好pytorch和tensorflow2.8的gpu版本后,在测试能否使用时报了以下错误:
import tensorflow as tf
tf.test.is_gpu_available()
tf.config.list_physical_devices('GPU')
报错信息如下:

2. 解决方案
2.1 将tensorflow降版本
将tensorflow2.8.0降为2.7.0,然后一切正常。但这种方案不推荐,毕竟只是相当于避开了这个问题。
pip install tensorflow-gpu==2.7.0
2.2 升级python版本
使用命令
conda update python
升级python版本。再次测试后发现此时导出tensorflow就正常了。
版权声明
本文为[CHH3213]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42301220/article/details/124334218
边栏推荐
- 你的指针学到什么层次了?8个指针题目让你加深对指针的理解(下)-O-
- Product sharing: QT + OSG education discipline tool: Geographic 3D planet
- Ronglian Qimo empowers enterprises with intelligent services and redefines the value of customer service
- Sumo course - public transport course
- Optimisation des performances des pages Web
- 小程序 关于分包
- What is the future direction of GPU?
- 插一个数到排好序的数组中(冒泡+rand函数)
- Release announcement of HMS core version 6.4.0
- Insert a number into the ordered array (Bubble + rand function)
猜你喜欢

AI video cloud vs narrowband HD, who is the darling of the video era

机器学习理论之(6):由逻辑回归(对数几率)方法到 SVM;为什么 SVM 是最大间隔分类器

Autodesk genuine Service 2020 Supprimer

Release announcement of HMS core version 6.4.0

DO447Ansible Tower导航

10-personalized top-N sequential recommendation via revolutionary sequence embedding

便利店卷疯了:便利蜂、罗森、易捷“激战”

There is no input method after win11 system starts up - the solution is effective through personal test

Detailed explanation of double pointers of ring linked list 1 and 2

pytorch使用profiler对模型性能分析时报错
随机推荐
Sumo circle driving
2022-04-21:给定一个包含 [0,n) 中不重复整数的黑名单 blacklist, 写一个函数从 [0, n) 中返回一个不在 blacklist 中的随机整数, 对它进行优化使其尽量少调用系
[knowledge atlas] catalogue of financial securities knowledge atlas projects
Senet | attention mechanism - source code + comments
Autodesk Genuine Service2020删除
記一次雲服務器配置mysql 遠程連接失敗的解决方案
go gin框架配置日志输出到文件
Homogeneous nucleation of ice by lammps
sumo教程——公共交通教程
高斯分布——在误差测量中的推导
How do programmers take orders alone?
容联七陌赋能企业智能化服务,重新定义客服价值
Registration process of New Zealand company and materials required
Ronglian Qimo empowers enterprises with intelligent services and redefines the value of customer service
[server data recovery] a data recovery case in which multiple hard disks of server raid6 are offline successively
sumo教程——Manhattan
Go gin framework configuration log output to file
. net debugging: use visual studio to debug dump files
Lesson 122 of serial 5 of Rasa dialogue robot: the actual operation of Rasa dialogue robot debugging project -- the whole life cycle debugging practice of bank financial dialogue robot - (I)
View application memory usage