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

Method _save_proto

tensorflow_hub/saved_model_lib.py:439–445  ·  view source on GitHub ↗
(self, path, proto)

Source from the content-addressed store, hash-verified

437 variables_saver(variables_path)
438
439 def _save_proto(self, path, proto):
440 proto_path = _get_saved_model_proto_path(path)
441 tf.compat.v1.gfile.MakeDirs(os.path.dirname(proto_path))
442 logging.debug("SavedModel saved in: %s", proto_path)
443 tf_utils.atomic_write_string_to_file(proto_path,
444 proto.SerializeToString(),
445 overwrite=True)
446
447
448def _parse_saved_model(path):

Callers 1

exportMethod · 0.95

Calls 1

Tested by

no test coverage detected