Use a pure PyTorch training loopΒΆ Enable manual optimization Gain control of the training loop with manual optimization and LightningModule methods. advanced