当前位置:网站首页>Runtimeerror: CUDA out of memory (solved) [easy to understand]
Runtimeerror: CUDA out of memory (solved) [easy to understand]
2022-07-25 14:10:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Use today pytorch When training neural networks , The following error occurred :
RuntimeError: CUDA out of memory. Tried to allocate 144.00 MiB (GPU 0; 2.00 GiB total capacity; 1.29 GiB already allocated; 79.00 MiB free; 1.30 GiB reserved in total by PyTorch)
Mingming GPU 0 Yes 2G Capacity , Why only 79M You can use ? also 1.30G Has been PyTorch Occupied . This means that PyTorch The amount of GPU Space is not released , Cause the next run , appear CUDA out of memory.
The solution is as follows :
(1) Create a new terminal
(2) Input nvidia-smi, Will be displayed GPU Usage situation , And occupy GPU Applications for
(3) Input taskkill -PID Process number -F End the process of occupation , such as taskkill -PID 7392 -F
(4) Input again nvidia-smi see GPU usage , Will find GPU The occupied space is greatly reduced , In this way, we can use GPU Run the program
【 Reference documents 】
CUDA out of memory.( resolved )
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127655.html Link to the original text :https://javaforall.cn
边栏推荐
- Cologne new energy IPO was terminated: the advanced manufacturing and Zhanxin fund to be raised is the shareholder
- Doris学习笔记之与其他系统集成
- Day1: 130 questions in three languages
- Problems and extensions of the monocular depth estimation model featdepth in practice
- 苹果手机端同步不成功,退出登录,结果再也登录不了
- Setting of parameter configuration tool for wireless vibrating wire collector
- Brush questions - Luogu -p1047 trees outside the school gate
- Numpy basic package for data analysis
- Leetcode202 --- Happy number
- What financial products can I invest with some money in my hand?
猜你喜欢

Realize a family security and environmental monitoring system (II)

maya建模练习

Brush questions - Luogu -p1151 sub number integer

Practice of online problem feedback module (13): realize multi parameter paging query list

飞沃科技IPO过会:年营收11.3亿 湖南文旅与沅澧投资是股东

sqli-labs Basic Challenges Less11-22

Engineering monitoring multi-channel vibrating wire sensor wireless acquisition instrument external digital sensor process

依迅总经理孙峰:公司已完成股改,准备IPO

What problems should SEOER pay attention to when baidu searches and attacks pirated websites?
![einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1,](/img/bb/0fd0fdb7537090829f3d8df25aa59b.png)
einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1,
随机推荐
知名手写笔记软件 招 CTO·坐标深圳
AI model risk assessment Part 1: motivation
Numpy basic package for data analysis
Arduino code of key state machine for realizing single, double click, long press and other functions with esp32 timed interrupt
Initial flask and simple application
Engineering monitoring multi-channel vibrating wire sensor wireless acquisition instrument external digital sensor process
CSV文本文件导入excel的四种方法
It is predicted that 2021 will accelerate the achievement of super automation beyond RPA
Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
Two Sum
IDEA设置提交SVN时忽略文件配置
Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice
Practice of online problem feedback module (13): realize multi parameter paging query list
Apple failed to synchronize on its mobile terminal, and logged out. As a result, it could not log in again
Brush questions - Luogu -p1146 coin flip
Construction and practice of yolov7 in hands-on teaching
Introducing mlops interpretation (I)
[original] nine point calibration tool for robot head camera calibration
Three ways of redis cluster
Common problems in the use of wireless vibrating wire acquisition instrument