From 338f5a331155d61a9d94168480ca45c264821019 Mon Sep 17 00:00:00 2001 From: ananthsub Date: Thu, 29 Apr 2021 14:44:04 -0700 Subject: [PATCH] Remove exp_save_path on the LightningModule (#7266) * deprecate-exp-save-path * Update lightning.py * Update CHANGELOG.md * remove-not-deprecate --- CHANGELOG.md | 4 ++++ pytorch_lightning/core/lightning.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04840e386b..04c25eefca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -183,6 +183,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Deprecated + - Deprecated the `save_function` property from the `ModelCheckpoint` callback ([#7201](https://github.com/PyTorchLightning/pytorch-lightning/pull/7201)) @@ -228,6 +229,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Removed +- Removed the `exp_save_path` property from the `LightningModule` ([#7266](https://github.com/PyTorchLightning/pytorch-lightning/pull/7266)) + + - Removed training loop explicitly calling `EarlyStopping.on_validation_end` if no validation is run ([#7069](https://github.com/PyTorchLightning/pytorch-lightning/pull/7069)) diff --git a/pytorch_lightning/core/lightning.py b/pytorch_lightning/core/lightning.py index 996b08522d..2fda884974 100644 --- a/pytorch_lightning/core/lightning.py +++ b/pytorch_lightning/core/lightning.py @@ -81,8 +81,6 @@ class LightningModule( # torch/nn/modules/module.py#L227) torch._C._log_api_usage_once(f"lightning.module.{self.__class__.__name__}") - self.exp_save_path = None - self.loaded_optimizer_states_dict = {} #: Pointer to the trainer object