Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 9a13bd4

Browse files
author
Frank Chen
committed
Update set_snapshot_fingerprint to with_snapshot_fingerprint
1 parent 19f3a62 commit 9a13bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rfcs/20200107-tf-data-snapshot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ etc..., while another run may have us multiplying `feature1`, then `feature3`,
175175
and so on).
176176

177177
In cases like these, we can ask fingerprinting to use a fixed value for the
178-
fingerprint of the map function with a new `set_snapshot_fingerprint`
178+
fingerprint of the map function with a new `with_snapshot_fingerprint`
179179
transformation, which asks the fingerprinting function to not compute the
180180
fingerprint of the previous node but to use a user-specified value instead:
181181

182182
```python
183183
dataset = ...
184184
dataset = dataset.map(preprocessing_fn)
185-
dataset = tf.data.experimental.set_snapshot_fingerprint(
185+
dataset = tf.data.experimental.with_snapshot_fingerprint(
186186
dataset, fingerprint="my_fixed_fp")
187187
```
188188

0 commit comments

Comments
 (0)