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

Function tfhub_export_path

language/common/utils/export_utils.py:66–71  ·  view source on GitHub ↗
(model_dir, hub_prefix, module_prefix)

Source from the content-addressed store, hash-verified

64
65
66def tfhub_export_path(model_dir, hub_prefix, module_prefix):
67 export_prefix = os.path.join(model_dir, "export", hub_prefix)
68 return latest_export_path(
69 glob_pattern="{}/*/{}".format(export_prefix, module_prefix),
70 regex_pattern="{}/(?P<timestamp>[0-9]+)/{}".format(
71 export_prefix, module_prefix))
72
73
74def clean_tfhub_exports(model_dir, hub_prefix, exports_to_keep):

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…