tf.saved_model.experimental.Fingerprint
Stay organized with collections
Save and categorize content based on your preferences.
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.
Args |
saved_model_checksum
|
Value of thesaved_model_checksum .
|
graph_def_program_hash
|
Value of the graph_def_program_hash .
|
signature_def_hash
|
Value of the signature_def_hash .
|
saved_object_graph_hash
|
Value of the saved_object_graph_hash .
|
checkpoint_hash
|
Value of the checkpoint_hash .
|
version
|
Value of the producer field of the VersionDef.
|
Attributes |
saved_model_checksum
|
A uint64 containing the saved_model_checksum .
|
graph_def_program_hash
|
A uint64 containing graph_def_program_hash .
|
signature_def_hash
|
A uint64 containing the signature_def_hash .
|
saved_object_graph_hash
|
A uint64 containing the saved_object_graph_hash .
|
checkpoint_hash
|
A uint64 containing thecheckpoint_hash .
|
version
|
An int32 containing the producer field of the VersionDef.
|
Methods
from_proto
View source
@classmethod
from_proto(
proto: fingerprint_pb2.FingerprintDef
) -> 'Fingerprint'
Constructs Fingerprint object from protocol buffer message.
singleprint
View source
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__
View source
__eq__(
other: Any
) -> bool
Return self==value.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]