Skip to content

Commit 0ca8297

Browse files
Monica Songtensorflower-gardener
Monica Song
authored andcommitted
[SavedModel Fingerprinting] Add documentation regarding project implementation.
tensorflow/community#415 PiperOrigin-RevId: 495996544
1 parent 7de0f5b commit 0ca8297

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## SavedModel Fingerprinting
2+
3+
This document describes the implementation details of SavedModel fingerprinting.
4+
The design document (RFC) can be found [here](https://github.com/tensorflow/community/pull/415).
5+
6+
### Implementation
7+
8+
The code that implements SavedModel fingerprinting can be found in :
9+
- `tensorflow/python/saved_model/fingerprinting.py`: Public python methods for accessing the fingerprint.
10+
- `tensorflow/python/saved_model/pywrap_saved_model_fingerprinting.*`: Python wrappers for C++ fingerprint methods. For internal use only.
11+
- `tensorflow/cc/saved_model/fingerprint.*`: C++ methods for creating and reading the fingerprint.
12+
- `tensorflow/core/graph/regularization/`: Code that "regularizes" the GraphDef. See the README
13+
14+
Generally speaking, most of the implementation for SavedModel fingerprinting is in C++. The code in this directory is meant to make these methods accessible in Python for the purposes of creating a public API
15+
as well as instrumenting the Python side of the code base.
16+
17+
### Instrumentation
18+
19+
The current SavedModel reading and loading APIs are instrumented such that they log
20+
the fingerprint every time they are called. The APIs that are instrumented are:
21+
- `tf.saved_model.save`
22+
- `tf.saved_model.load`
23+
- `tensorflow::LoadSavedModel`
24+
- `tensorflow::SavedModelV2Bundle::Load`
25+
26+

0 commit comments

Comments
 (0)