def after_run(self, run_context, run_values):
    global_step = run_values.results
    if (self._last_saved_time is None):
        self._save(global_step, run_context.session)
    if (self._save_steps is not None):
        if (global_step >= (self._last_saved_step + self._save_steps)):
            self._save(global_step, run_context.session)
    if (self._save_secs is not None):
        if (time.time() >= (self._last_saved_time + self._save_secs)):
            self._save(global_step, run_context.session)
def after_run(self, run_context, run_values):
    global_step = run_values.results
    if (self._last_saved_time is None):
        self._save(global_step, run_context.session)
    if (self._save_steps is not None):
        if (global_step >= (self._last_saved_step + self._save_steps)):
            self._save(global_step, run_context.session)
    if (self._save_secs is not None):
        if (time.time() >= (self._last_saved_time + self._save_secs)):
            self._save(global_step, run_context.session)