How to free-up GPU memory in pyTorch 0.2.x?

Yeah I just restart the kernel.