def every_n_step_end(self, step, outputs):
    super(ExportMonitor, self).every_n_step_end(step, outputs)
    try:
        self._last_export_dir = self._estimator.export(self.export_dir, exports_to_keep=self.exports_to_keep, signature_fn=self.signature_fn, input_fn=self._input_fn, default_batch_size=self._default_batch_size, input_feature_key=self._input_feature_key, use_deprecated_input_fn=self._use_deprecated_input_fn)
    except RuntimeError:
        logging.info('Skipping exporting because the existing checkpoint has already been exported. Consider exporting less frequently.')
def every_n_step_end(self, step, outputs):
    super(ExportMonitor, self).every_n_step_end(step, outputs)
    try:
        self._last_export_dir = self._estimator.export(self.export_dir, exports_to_keep=self.exports_to_keep, signature_fn=self.signature_fn, input_fn=self._input_fn, default_batch_size=self._default_batch_size, input_feature_key=self._input_feature_key, use_deprecated_input_fn=self._use_deprecated_input_fn)
    except RuntimeError:
        logging.info('Skipping exporting because the existing checkpoint has already been exported. Consider exporting less frequently.')