diff options
author | Christina Sorokin <christis@google.com> | 2018-09-11 22:27:03 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-11 22:30:49 -0700 |
commit | 4b2763e6c8e13ff0f8ab699fc7d370fffac1b5f2 (patch) | |
tree | 9763846c05a3d020cf1f9bac0a2f6f1b88369305 /tensorflow/python/saved_model | |
parent | 6a21e1386e3e68cf752af861b9b1b950bda8a130 (diff) |
Update documentation for SavedModel tags.
PiperOrigin-RevId: 212582822
Diffstat (limited to 'tensorflow/python/saved_model')
-rw-r--r-- | tensorflow/python/saved_model/README.md | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tensorflow/python/saved_model/README.md b/tensorflow/python/saved_model/README.md index 5eeaf73a43..fe69f3beb0 100644 --- a/tensorflow/python/saved_model/README.md +++ b/tensorflow/python/saved_model/README.md @@ -91,10 +91,17 @@ with an asset of the same name, only the first version is retained. #### Tags Each meta graph added to the SavedModel must be annotated with user specified -tags. The tags provide a means to identify the specific meta graph to load and -restore, along with the shared set of variables and assets. These tags -typically annotate a MetaGraph with its functionality (e.g. serving or -training), and possibly hardware specific aspects such as GPU. +tags, which reflect the meta graph capabilities or use-cases. +More specifically, these tags typically annotate a meta graph with its +functionality (e.g. serving or training), and possibly hardware specific aspects +such as GPU. +In the SavedModel, the meta graph def whose tag-set exactly matches those +specified in the loader API, will be the one loaded by the loader. +If no meta graph def is found matching the specified tags, an error is returned. +For example, a loader with a requirement to serve on GPU hardware would be able +to load only meta graph annotated with tags='serve,gpu' by specifying this set +of tags in tensorflow::LoadSavedModel(...). + #### Usage The typical usage of `builder` is as follows: |