Getting out of memory in validation even using torch.no_grad()

Please, check this thread: Increase the CUDA memory twice then stop increasing