CUDA out of memory问题(已解决)深度学习_outofmemoryerror: cuda out of memory
作者:羊村懒王 | 2024-02-16 00:40:09
赞
踩
outofmemoryerror: cuda out of memory
#Cuda out of memory 问题解决
RuntimeError:CUDA out of memory.Tried to allocate 256.00 MiB (GPU0;23.70GiBtotal capacity;844.99 MiB already allocated;186.44 MiB free:868.00 MiBreserved in total by PyTorch)If reserved memory is >allocated memory trysettingmax split size mb to avoid fragmentation. See documentation for MemoryManagement and PYTORCH CUDA ALLOC CONF