# tf.saved_model.experimental.Fingerprint

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/saved_model/fingerprinting.py#L26-L146) |

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.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `saved_model_checksum` | Value of the`saved_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. |

<br />

<br />

<br />

<br />

| ## 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 the`checkpoint_hash`. |
| `version` | An int32 containing the producer field of the VersionDef. |

<br />

## Methods

### `from_proto`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/saved_model/fingerprinting.py#L69-L85)

    @classmethod
    from_proto(
        proto
    )

Constructs Fingerprint object from protocol buffer message.

### `singleprint`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/saved_model/fingerprinting.py#L118-L146)

    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.)

<br />

<br />

<br />

| Returns ||
|---|---|
| The string concatenation of `graph_def_program_hash`, `signature_def_hash`, `saved_object_graph_hash`, and `checkpoint_hash` fingerprint attributes (separated by '/'). ||

<br />

<br />

<br />

<br />

| Raises ||
|---|---|
| `ValueError` | If the fingerprint fields cannot be used to construct the singleprint. |

<br />

### `__eq__`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/saved_model/fingerprinting.py#L87-L99)

    __eq__(
        other
    )

Return self==value.