Skip to content

Commit a8d27de

Browse files
authored
Merge pull request #438 from monicadsong/amendment
[SavedModel Fingerprinting] Amend RFC #415 to include public API.
2 parents 73f7b75 + db4a677 commit a8d27de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfcs/20220610-saved-model-fingerprinting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ One drawback of having a separate file is that it is a potentially significant c
184184

185185
All fingerprints will be written to disk automatically, and there is no way to bypass or customize writing fingerprints when serializing a SavedModel.
186186

187-
To read the fingerprint, users can load the protobuf into memory and read the field. At first, there will not be dedicated APIs in Python to get the fingerprint, since no other part of the SavedModel has special APIs to access its value. However, if the need arises, we can add APIs under the `tf.saved_model` namespace to read the fingerprint.
187+
There will be a public API in python `tf.saved_model.read_fingerprint(export_dir)` which returns a dictionary mapping the names of the fields in the protobuf (i.e. "saved_model_checksum", "graph_def_program_hash", "signature_def_hash", "saved_object_graph_hash", "checkpoint_hash", "version") to their values.
188188

189189
### Validation
190190

0 commit comments

Comments
 (0)