当前位置:网站首页>Tsinghua University image source will cause tensorflow GPU installation failure
Tsinghua University image source will cause tensorflow GPU installation failure
2022-06-12 23:42:00 【An autumn moon】
The author has previously installed pytorch Add Tsinghua University channel to , Later installed tensorflow-gpu Always installed is tensorflow Of cpu edition
1. View the installation image
conda config --get channels
2. Delete the default image
conda config --remove-key channels
3. Then reinstall tensorflow-gpu
conda install tensorflow-gpu=1.10
3. see gpu Is the call successful
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 9864097557774494597
, name: "/device:GPU:0"
device_type: "GPU"
memory_limit: 10738902631
locality {
bus_id: 1
links {
}
}
incarnation: 3161576480591350016
physical_device_desc: "device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:18:00.0, compute capability: 7.5"
]
The terminal displays the above interface , be gpu Version installed successfully
边栏推荐
- 數組
- 启牛帮开通的股票账户是安全可信的吗?
- 基于Three.js海上风电数字孪生三维效果
- Zhengzhou University of light industry -- development and sharing of harmonyos pet health system
- KConfig
- [Yugong series] wechat applet in February 2022 - Reference
- How does idea switch the interface to Chinese
- Automatically obtain the position offset of member variables inside the structure
- Face detection: mtcnn
- Go time format assignment
猜你喜欢
M_8:设计消息队列存储消息数据的 MySQL 表格
测试平台系列(97) 完善执行case部分
OpenCV源代码编译
Running of NCF dapr application instance
[opencv learning] use the Tesseract OCR movement to recognize numbers
数组
2022 heavyweight: growth law - skillfully use digital marketing to break through enterprise difficulties
Ast, really fragrant
NCF 的Dapr应用实例的运行
[kubernetes guide ④] pod quick start
随机推荐
Unprecedented analysis of Milvus source code architecture
Hongmeng starts 2
Theory + practice will help you master the dynamic programming method
Operation of simulation test platform for G3 boiler water treatment test questions in 2022
Introduction to message oriented middleware (message queue)
InfoQ 极客传媒 15 周年庆征文|简述构建微服务架构的四大挑战
dict和set的基本操作
2022年危險化學品經營單比特安全管理人員考試試題及在線模擬考試
Module 8 operation
移动安全必备之CS呢【NETHUNTER】
lua 条件语句
1111111111111111111111111111111111111111111111111111111
Face detection: mtcnn
The fate of Internet people is that it is difficult to live to 30?
Zhengzhou University of light industry -- development and sharing of harmonyos pet health system
Redis realizes SMS verification code login
RT thread quick start - experience RT thread
Don't write about the full screen explosion, try the decorator mode, this is the elegant way!!
It is meaningful to define genus, and D can use it to explain semantics
TCP与UDP