          except ValueError as err:
              if include_optimizer and "name already exists" in str(err):
                  logger.warning("Due to a bug in older versions of Tensorflow, optimizer state "
                                 "cannot be saved for this model.")
                  self._plugin.model.save(self._filename, include_optimizer=False)
              else:
                  raise
  
          self._plugin.state.save()
  
 
</s> remove             self._plugin.model.save(self._filename, include_optimizer=include_optimizer)
 </s> add             self._plugin.model.save(self.filename, include_optimizer=include_optimizer) </s> remove         msg = "[Saved optimizer state for Snapshot]" if force_save_optimizer else "[Saved models]"
 </s> add         msg = "[Saved optimizer state for Snapshot]" if force_save_optimizer else "[Saved model]" </s> remove                 msg = (f"Unable to load the model from '{self._filename}'. This may be a "
 </s> add                 msg = (f"Unable to load the model from '{self.filename}'. This may be a " </s> remove                 msg = (f"Unable to load the model from '{self._filename}'. This may be a "
 </s> add                 msg = (f"Unable to load the model from '{self.filename}'. This may be a " </s> remove             model = kmodels.load_model(self._filename, compile=False)
 </s> add             model = kmodels.load_model(self.filename, compile=False)
                self._plugin.model.save(self.filename, include_optimizer=False)
          except ValueError as err:
              if include_optimizer and "name already exists" in str(err):
                  logger.warning("Due to a bug in older versions of Tensorflow, optimizer state "
                                 "cannot be saved for this model.")
                self._plugin.model.save(self.filename, include_optimizer=False)
              else:
                  raise
  
          self._plugin.state.save()
  
keep keep keep keep replace keep keep keep keep keep
 Learning Rate finder (#1341)

* Add LR Finder support structure

* Move trainer.Feeder to lib.training.generator

* Expose model.io

* Add lr_finder

* Update docs and locales

* Pre-PR fixups
  - Fix training graph not displaying
  - CI fixes
  - Switch lr finder progress to tqdm
  - Exit lr finder early on NaN
  - Display lr finder progress in GUI 
plugins/train/model/_base/io.py