Actually performs the export of registered Modules.
(self,
estimator,
export_path,
checkpoint_path,
eval_result,
is_the_final_export=None)
| 175 | return self._latest_module_exporter.name |
| 176 | |
| 177 | def export(self, |
| 178 | estimator, |
| 179 | export_path, |
| 180 | checkpoint_path, |
| 181 | eval_result, |
| 182 | is_the_final_export=None): |
| 183 | """Actually performs the export of registered Modules.""" |
| 184 | if self._best_eval_result is None or self._compare_fn( |
| 185 | best_eval_result=self._best_eval_result, |
| 186 | current_eval_result=eval_result): |
| 187 | tf.logging.info("Exporting the best modules.") |
| 188 | self._best_eval_result = eval_result |
| 189 | return self._latest_module_exporter.export(estimator, export_path) |
| 190 | |
| 191 | |
| 192 | def metric_compare_fn(key, compare): |