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.
Args |
|---|
saved_model_checksum
saved_model_checksum.
graph_def_program_hash
graph_def_program_hash.
signature_def_hash
signature_def_hash.
saved_object_graph_hash
saved_object_graph_hash.
checkpoint_hash
checkpoint_hash.
version
Attributes |
|---|
saved_model_checksum
saved_model_checksum.
graph_def_program_hash
graph_def_program_hash.
signature_def_hash
signature_def_hash.
saved_object_graph_hash
saved_object_graph_hash.
checkpoint_hash
checkpoint_hash.
version
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
__eq__
__eq__(
other
)
Return self==value.
View source on GitHub