(self, path, proto)
| 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 | |
| 448 | def _parse_saved_model(path): |
no test coverage detected