MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / export

Function export

tensorflow/python/distribute/hvd_strategy.py:1436–1452  ·  view source on GitHub ↗
(export_dir_base,
           checkpoint_path,
           signature_def_fn,
           assets_extra=None,
           as_text=False,
           clear_devices=True,
           strip_default_attrs=True,
           mode=ModeKeys.PREDICT)

Source from the content-addressed store, hash-verified

1434 yield ctx
1435
1436def export(export_dir_base,
1437 checkpoint_path,
1438 signature_def_fn,
1439 assets_extra=None,
1440 as_text=False,
1441 clear_devices=True,
1442 strip_default_attrs=True,
1443 mode=ModeKeys.PREDICT):
1444
1445 return export_all(export_dir_base,
1446 checkpoint_path,
1447 lambda: {SIGNATURE_KEY_MAP[mode]: signature_def_fn()},
1448 assets_extra=assets_extra,
1449 as_text=as_text,
1450 clear_devices=clear_devices,
1451 strip_default_attrs=strip_default_attrs,
1452 modes=[mode])

Callers

nothing calls this directly

Calls 1

export_allFunction · 0.85

Tested by

no test coverage detected