View source on GitHub
|
The SavedModel fingerprint.
tf.saved_model.experimental.Fingerprint(
saved_model_checksum=None,
graph_def_program_hash=None,
signature_def_hash=None,
saved_object_graph_hash=None,
checkpoint_hash=None,
version=None
)
Each attribute of this class is named after a field name in the FingerprintDef proto and contains the value of the respective field in the protobuf.
Methods
from_proto
@classmethodfrom_proto( proto )
Constructs Fingerprint object from protocol buffer message.
singleprint
singleprint()
Canonical fingerprinting ID for a SavedModel.
Uniquely identifies a SavedModel based on the regularized fingerprint attributes. (saved_model_checksum is sensitive to immaterial changes and thus non-deterministic.)
| Returns | |
|---|---|
The string concatenation of graph_def_program_hash,
signature_def_hash, saved_object_graph_hash, and checkpoint_hash
fingerprint attributes (separated by '/').
|
| Raises | |
|---|---|
ValueError
|
If the fingerprint fields cannot be used to construct the singleprint. |
__eq__
__eq__(
other
)
Return self==value.
View source on GitHub