MCPcopy Create free account
hub / github.com/tensorflow/hub / get_variables_path

Function get_variables_path

tensorflow_hub/saved_model_lib.py:51–56  ·  view source on GitHub ↗

Returns the path for storing variables checkpoints.

(export_dir)

Source from the content-addressed store, hash-verified

49
50
51def get_variables_path(export_dir):
52 """Returns the path for storing variables checkpoints."""
53 return os.path.join(
54 tf.compat.as_bytes(export_dir),
55 tf.compat.as_bytes(tf.compat.v1.saved_model.VARIABLES_DIRECTORY),
56 tf.compat.as_bytes(tf.compat.v1.saved_model.VARIABLES_FILENAME))
57
58
59def _get_assets_dir(export_dir):

Callers 1

_save_variablesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected