def restore(self, sess):
    assert self._inited, 'make sure init() before restore()'
    if self._restore_vars(sess):
        logger.info('- succeed restore variables from: {}'.format(self.restore_ckpt_file))
        return True
    return False
def restore(self, sess):
    assert self._inited, 'make sure init() before restore()'
    if self._restore_vars(sess):
        logger.info('- succeed restore variables from: {}'.format(self.restore_ckpt_file))
        return True
    return False