Out of memory when optimizer.zero_grad() is called

The track back is the same, though.