A SavedModel folder can hold a
fingerprint.pb beside saved_model.pb: one
FingerprintDef message with hashes of the model’s parts. It identifies
a model without loading it. When a model has several meta graphs, the fingerprint
describes the first. The schema is fingerprint.proto.
FingerprintDef
| Field | Name | Type | Meaning |
|---|---|---|---|
| 1 | saved_model_checksum | uint64 | A hash of saved_model.pb. |
| 2 | graph_def_program_hash | uint64 | A hash of the regularised graph. |
| 3 | signature_def_hash | uint64 | A hash of the regularised, sorted signatures. |
| 4 | saved_object_graph_hash | uint64 | A hash of the regularised object graph. |
| 5 | checkpoint_hash | uint64 | A hash of the checkpoint. |
| 7 | uuid | string | A random ID, not related to the hashes. |
| 6 | version | VersionDef | The version of the fingerprint. |
Telling it apart
Five numbers and a short string fit many messages, so the file has no bytes that
mark it. The explorer takes a file as a FingerprintDef only when it is
named fingerprint.pb and its fields fit the schema; any other file
with the same bytes is read as a message without a schema.