FitLoop¶
- class pytorch_lightning.loops.FitLoop(min_epochs=0, max_epochs=None)[source]¶
Bases:
pytorch_lightning.loops.loop.Loop
[None
]This Loop iterates over the epochs to run the training.
- Parameters:
- on_advance_start()[source]¶
Prepares the dataloader for training and calls the hooks
on_epoch_start
andon_train_epoch_start
- Return type:
- property restarting: bool¶
Whether the state of this loop was reloaded and it needs to restart.
- Return type:
- property running_loss: pytorch_lightning.trainer.supporters.TensorRunningAccum¶
Returns the running loss.
- Return type:
TensorRunningAccum
- property skip: bool¶
Whether we should skip the training and immediately return from the call to
run()
.- Return type: