View source on GitHub |
The SavedModel fingerprint.
tf.saved_model.experimental.Fingerprint(
saved_model_checksum: int = None,
graph_def_program_hash: int = None,
signature_def_hash: int = None,
saved_object_graph_hash: int = None,
checkpoint_hash: int = None,
version: int = 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
@classmethod
from_proto( proto: fingerprint_pb2.FingerprintDef ) -> 'Fingerprint'
Constructs Fingerprint object from protocol buffer message.
singleprint
singleprint() -> fingerprinting_pywrap.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: Any
) -> bool
Return self==value.