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 min_steps: Optional[int]
Returns the minimum number of steps to run.
- 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:
- property split_idx: int
Returns the index of the current batch split (within the current batch) for bptt.
- Return type: