当前位置:网站首页>There is no need to install CUDA and cudnn manually. You can install tensorflow GPU through a one-line program. Take tensorflow gpu2.0.0, cuda10.0, cudnn7.6.5 as examples
There is no need to install CUDA and cudnn manually. You can install tensorflow GPU through a one-line program. Take tensorflow gpu2.0.0, cuda10.0, cudnn7.6.5 as examples
2022-07-27 05:00:00 【zycnice】
stay anaconda prompt In program base In the environment :
# Create a tf2 Virtual environment for , And according to the preset environment name tensorflow-gpu
# Automatic installation CUDA,cuDNN,TensorFlow GPU etc.
conda create -n tf2 tensorflow-gpu==2.0.0
# Activate tf2 A virtual environment conda activate tf2
conda activate tf2
This quick installation method is called minimalist installation method . This is also used Anaconda The convenience of distribution The place of . Installed via minimalist TensorFlow, When using, you need to activate the corresponding virtual environment , This needs to be connected with Standard Edition differentiation . The standard version is installed on Anaconda The default environment for base in , Generally, manual activation is not required base Ring habitat .
# Use Tsinghua source to install common python library
pip install -U ipython numpy matplotlib pillow pandas -i https://pypi.tuna.tsinghua.edu.cn/simple
TensorFlow At run time , By default, it will occupy all GPU Video memory resources , This is very unfriendly behavior , especially When the computer has multiple users or programs at the same time GPU Resource time , Take all of GPU Video memory resources will make Other programs cannot run . therefore , General recommended settings TensorFlow The video memory occupation mode of is the increasing occupation mode , That is, apply for video memory resources according to the actual model size , The code implementation is as follows :
gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
try:
# Set up GPU Growth occupancy
for gpu in gpus:
tf.config.experimental.set_memory_growth(gpu, True)
except RuntimeError as e:
# Printing exception
print(e)
边栏推荐
- Easy to use mobile app automation testing framework where to find? Just collect this list!
- 使用mq消息队列来进行下单流程的高并发设计,消息挤压,消息丢失,消息重复的产生场景和解决方案
- The price reduction of iphone13 is just a show. Consumers are waiting for iphone14
- Comprehensive experiment of static routing
- Qstring conversion char*
- STM32 cubeMX HAL-----PWM—改变频率
- [search] flood fill and shortest path model
- Chapter 4 scope and life cycle of bean object
- R-score reproduction R-Precision evaluation index quantitative text generation image r-score quantitative experiment whole process reproduction (R-Precision) quantitative evaluation experiment step on
- 【C语言】动态内存管理
猜你喜欢

单元测试chapter6

Digital integrated circuit: MOS tube device chapter (I)

2019 top tennis cup upload

HCIA dynamic routing rip basic experiment

C语言 通讯录管理系统(链表,手机号码分段存储,txt文件存取,完整源码)
![[C language] detailed explanation of user-defined types (structure + enumeration + Union)](/img/d9/b10371159c63c126b5ff98bac0971a.png)
[C language] detailed explanation of user-defined types (structure + enumeration + Union)
![[error reporting]: cannot read properties of undefined (reading 'prototype')](/img/e4/528480610b9eed6028d7b3b87571e2.png)
[error reporting]: cannot read properties of undefined (reading 'prototype')

C language address book management system (linked list, segmented storage of mobile phone numbers, TXT file access, complete source code)

【报错】Cannot read property ‘parseComponent‘ of undefined

OFDM 十六讲 2- OFDM and the DFT
随机推荐
Network protocol details: IP
.htaccess学习
【搜索】双向广搜 + A*
[C language] dynamic memory management
再一个技巧,每月稳赚3万+
柔性数组以及常见问题
【搜索】Flood Fill 和 最短路模型
Shell programming enhancements
On the problem that Gorm's beforedelete hook method does not work
2022 T2i text generated image Chinese Journal Paper quick view-1 (ecagan: text generated image method based on channel attention mechanism +cae-gan: text generated image technology based on transforme
HCIA dynamic routing OSPF experiment
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
Structural mode - facade mode
Final Cut Pro Chinese tutorial (2) understanding of material window
STM32 Hal serial port (uart/usart) debugging experience (I) -- basic knowledge of serial port communication +hal library code understanding
STL upper series - detailed explanation of list container
How do I reset Photoshop preferences? PS method of resetting preferences
Photoshop裁剪工具隐藏技巧
Web框架介绍
报错:cannot read poperties of undefined(reading ‘then‘)