easyStudy question · answer published in PyTorch interview questions, so no pointsgpu-computingpytorchgpu-memory
Memory during evaluation
Your evaluation loop uses far more GPU memory than expected. Wrapping it in torch.no_grad() (or torch.inference_mode()) fixes it. Why?
Discussion 0
Join free to post in the discussion.