Remove deprecated trainer arguments (#223)

* Remove deprecated trainer arguments: `weight summary` and `progress_bar_refresh_rate`
* Remove deprecated example from README
* Add RichModelSummary to the callbacks
This commit is contained in:
charles authored and GitHub committed 2021-12-15 01:40:18 +01:00
1 parent 0feda07965
commit 7a33c0bdad
4 files changed
+4 -7

No files matched your search

-3
View File
@@ -304,9 +304,6 @@ python run.py +trainer.fast_dev_run=true
# raise exception if there are any numerical anomalies in tensors, like NaN or +/-inf
python run.py +trainer.detect_anomaly=true
# print full weight summary of all PyTorch modules
python run.py trainer.weights_summary="full"
# print execution time profiling after training ends
python run.py +trainer.profiler="simple"
+4
View File
@@ -16,5 +16,9 @@ early_stopping:
patience: 100 # how many validation epochs of not improving until training stops
min_delta: 0 # minimum change in the monitored metric needed to qualify as an improvement
model_summary:
_target_: pytorch_lightning.callbacks.RichModelSummary
max_depth: 1
rich_progress_bar:
_target_: pytorch_lightning.callbacks.RichProgressBar
-2
View File
@@ -7,8 +7,6 @@ min_epochs: 1
max_epochs: 2
# prints
progress_bar_refresh_rate: null
weights_summary: "full"
profiler: null
# debugs
-2
View File
@@ -5,9 +5,7 @@ gpus: 0
min_epochs: 1
max_epochs: 10
progress_bar_refresh_rate: 5
resume_from_checkpoint: null
weights_summary: "full"
# number of validation steps to execute at the beginning of the training
num_sanity_val_steps: 0