Skip to content

Commit 18e95e0

Browse files
rohitgr7lexierule
authored andcommitted
release 1.5.9
1 parent b5b1174 commit 18e95e0

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7+
## [1.5.9] - 2022-01-11
8+
9+
### Fixed
10+
11+
- Pin sphinx-autodoc-typehints with <v1.15 ([#11400](https://github.com/PyTorchLightning/pytorch-lightning/pull/11400))
12+
- Skip testing with PyTorch 1.7 and Python 3.9 on Ubuntu ([#11217](https://github.com/PyTorchLightning/pytorch-lightning/pull/11217))
13+
714

815
## [1.5.8] - 2022-01-05
916

pytorch_lightning/callbacks/lr_monitor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def _check_no_key(key: str) -> bool:
147147
self.last_momentum_values = {name + "-momentum": None for name in names_flatten}
148148

149149
def on_train_batch_start(self, trainer: "pl.Trainer", *args: Any, **kwargs: Any) -> None:
150+
assert trainer.logger is not None
150151
if not trainer.logger_connector.should_update_logs:
151152
return
152153

@@ -158,6 +159,7 @@ def on_train_batch_start(self, trainer: "pl.Trainer", *args: Any, **kwargs: Any)
158159
trainer.logger.log_metrics(latest_stat, step=trainer.global_step)
159160

160161
def on_train_epoch_start(self, trainer: "pl.Trainer", *args: Any, **kwargs: Any) -> None:
162+
assert trainer.logger is not None
161163
if self.logging_interval != "step":
162164
interval = "epoch" if self.logging_interval is None else "any"
163165
latest_stat = self._extract_stats(trainer, interval)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ torchmetrics>=0.4.1
1111
pyDeprecate==0.3.1
1212
packaging>=17.0
1313
typing-extensions
14+
setuptools==59.5.0 # required for https://github.com/pytorch/pytorch/pull/69904

0 commit comments

Comments
 (0)