Model.to("cpu") does not release GPU memory allocated by registered buffer

“you cannot delete the CUDA context while the PyTorch process is still running”

1 Like