Change batch size during training

Is this solution still valid for fastai version 1.x?