torch.cuda.ipc_collect torch.cuda.ipc_collect() Force collects GPU memory after it has been released by CUDA IPC.