Load session from fname or from checkpoint
if fname is None:
ckpt = tf.train.get_checkpoint_state(self._model_path.parent)
if ckpt and ckpt.model_checkpoint_path:
fname = ckpt.model_checkpoint_path
if fname is None:
raise FileNotFoundError("\n:: <ERR> checkpoint not found! \n")
After Change
Load session from fname or from checkpoint
if fname is None:
ckpt = self.get_checkpoint_state()
if ckpt and ckpt.model_checkpoint_path:
fname = ckpt.model_checkpoint_path
if fname is None:
raise FileNotFoundError("\n:: <ERR> checkpoint not found! \n")