先把网络搭好 Step1:Computational code goes into LightningModule Step2:Set forward hook In Lightning , forward difines the predition/inference actions Step3:Optimizers go into configure_optimizers LightningModule hook Step4:Training logic goes into training_step LightningModule hook Step5:Validation logic...