python-3.x - 尽管可用,但 Cuda 内存不足
问题描述
我正在尝试对一些大小为 256x256 的图像运行 GAN。但是,每当我开始训练时,我都会收到此错误:
RuntimeError: CUDA out of memory. Tried to allocate 2.19 GiB (GPU 0; 10.00 GiB total capacity; 437.15 MiB already allocated; 6.38 GiB free; 1.51 GiB reserved in total by PyTorch)
我不知道如何解决它。似乎有足够的内存,所以我很困惑为什么会发生这种情况。
解决方案
推荐阅读
- python - SeleniumLibrary instalation problem (robot framework)
- rest - How to generate JWT token using Rest API for Oracle fusion ERP Cloud in Java
- clojurescript - TypeError: $jscomp$generator$this.send is not a function
- android - Android: Fragment has null arguments when getting global nested safeargs
- python - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. I try to install mysqlclient in fedora
- sql - 使用 oracle sqlplus 将两个 json 对象合二为一
- python - Python 3 Kernel not showing in GCP
- vue.js - Can I use Vue-native with mysql
- powerbi - 如何使用 DAX 在 Power BI 中计算加权平均值?
- python - 为什么 python 的数组对无符号整数使用 2 个字节,而 C 通常需要 4 个字节?