if ckpt and ckpt.model_checkpoint_path:
print("\n:: restoring checkpoint from", ckpt.model_checkpoint_path, "\n")
saver.restore(self._sess, ckpt.model_checkpoint_path)
print("session restored")
else:
print("\n:: <ERR> checkpoint not found! \n")
def tokens_batch_to_numpy_batch(self, batch_x, batch_y=None):
After Change
print("Restore NerNetwork model from {}".format(str(self.load_path)))
saver.restore(self._sess, str(self.load_path))
else:
warn("Provided `load_path` is incorrect!")
else:
warn("Provided `load_path` is incorrect!")
else:
warn("No `load_path` is provided for {}".format(self.__class__.__name__))