OutOfMemoryError: CUDA out of memory. Tried to allocate 2.25 GiB (GPU 0; 4.00 GiB total capacity; 6.68 GiB already allocated; 0 bytes free; 6.73 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
提示我的cuda只剩0内存
根据网上设置过PYTORCH_CUDA_ALLOC_CONF max_split_size_mb参数没效果,0 bytes free依旧报剩余0内存,具体详情可参考:http://www.yayihouse.com/yayishuwu/chapter/4346码上敲享是一个免费资源共享平台,主要是分享个人在java的开发方面的知识和经验,涉及的内容有java的开发,其中包括java、html、css、js、sql、开发框架等,为广大码农提供前车之鉴,少走弯路,码上敲享录。http://www.yayihouse.com/yayishuwu/chapter/4346