MCPcopy Create free account
hub / github.com/google-research/language / export

Method export

language/common/utils/exporters.py:177–189  ·  view source on GitHub ↗

Actually performs the export of registered Modules.

(self,
             estimator,
             export_path,
             checkpoint_path,
             eval_result,
             is_the_final_export=None)

Source from the content-addressed store, hash-verified

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
192def metric_compare_fn(key, compare):

Callers 3

mainFunction · 0.45
exportMethod · 0.45
exportMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected