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

Method _save_variables

tensorflow_hub/saved_model_lib.py:431–437  ·  view source on GitHub ↗
(self, path, variables_saver)

Source from the content-addressed store, hash-verified

429 tf.compat.v1.gfile.Copy(source, destination)
430
431 def _save_variables(self, path, variables_saver):
432 if variables_saver:
433 variables_path = get_variables_path(path)
434 variables_dir = os.path.dirname(variables_path)
435 tf.compat.v1.gfile.MakeDirs(variables_dir)
436 logging.debug("Variables saved in: %s", variables_path)
437 variables_saver(variables_path)
438
439 def _save_proto(self, path, proto):
440 proto_path = _get_saved_model_proto_path(path)

Callers 1

exportMethod · 0.95

Calls 1

get_variables_pathFunction · 0.85

Tested by

no test coverage detected