extensible.extensions.default#
Classes
|
Exposes the following fixtures: |
|
Basic train manager setup. |
- class extensible.extensions.default.Setup#
Bases:
ExtensionBasic train manager setup.
- pre_run(train_manager, standalone_eval)#
Basic train manager setup. This hook
moves the model to the device,
builds the optimizer if it was provided as a callable, passing in all model parameters and
- post_load_checkpoint(checkpoint_loaded, fixtures, train_manager)#
Initializes weights if no checkpoint was loaded.
- class extensible.extensions.default.EvalState(visualize: bool = True)#
Bases:
ExtensionExposes the following fixtures:
- Fixtures
- num_batches
The cumulative number of batches currently visited during an evaluation epoch.
- num_samples
The cumulative number of samples currently visited during an evaluation epoch.
- cum_loss
The sum of all losses for all batches currently visited during an evalution epoch.
Adds the following visualization at the end of the epoch:
Cumulative loss divided by the total number of batches in the epoch.