Skip to content
RED SAG Skills
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?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions