torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 4.52 GiB (GPU 0; 11.76 GiB total capacity; 7.13 GiB already allocated; 3.38 MiB free; 11.38 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
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 4.52 GiB (GPU 0; 11.76 GiB total capacity; 7.13 GiB already allocated; 3.38 MiB free; 11.38 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