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

Function best_export_path

language/common/utils/export_utils.py:59–63  ·  view source on GitHub ↗
(model_dir, best_prefix="best")

Source from the content-addressed store, hash-verified

57
58
59def best_export_path(model_dir, best_prefix="best"):
60 export_prefix = os.path.join(model_dir, "export", best_prefix)
61 return latest_export_path(
62 glob_pattern="{}/*".format(export_prefix),
63 regex_pattern="{}/(?P<timestamp>[0-9]+)".format(export_prefix))
64
65
66def tfhub_export_path(model_dir, hub_prefix, module_prefix):

Callers

nothing calls this directly

Calls 1

latest_export_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…