def post_step(self, step, session):
    super(CheckpointSaver, self).post_step(step, session)
    if (self._last_saved_time is None):
        self._save(step, session)
    if (self._save_steps is not None):
        if (step >= (self._last_saved_step + self._save_steps)):
            self._save(step, session)
    if (self._save_secs is not None):
        if (time.time() >= (self._last_saved_time + self._save_secs)):
            self._save(step, session)
def post_step(self, step, session):
    super(CheckpointSaver, self).post_step(step, session)
    if (self._last_saved_time is None):
        self._save(step, session)
    if (self._save_steps is not None):
        if (step >= (self._last_saved_step + self._save_steps)):
            self._save(step, session)
    if (self._save_secs is not None):
        if (time.time() >= (self._last_saved_time + self._save_secs)):
            self._save(step, session)