(model_dir, hub_prefix, module_prefix)
| 64 | |
| 65 | |
| 66 | def 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 | |
| 74 | def clean_tfhub_exports(model_dir, hub_prefix, exports_to_keep): |
nothing calls this directly
no test coverage detected
searching dependent graphs…