Skip to content

Commit

Permalink
Document that TF Hub models are immutable
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 371123879
  • Loading branch information
TensorFlow Hub Authors authored and copybara-github committed Apr 29, 2021
1 parent 117c323 commit fe0858e
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/common_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ production servives, consider
[TensorFlow Serving](https://www.tensorflow.org/tfx/guide/serving) or other
scalable, Python-free solutions.)


Assuming your use-case model is **initialization** and subsequent **requests**
(for example Django, Flask, custom HTTP server, etc.), you can set-up the
serving as follows:
Expand Down Expand Up @@ -132,8 +131,16 @@ result = session.run(embedded_text, feed_dict={text_input: ["Hello world"]})

## Cannot change a model's dtype (e.g., float32 to bfloat16)

TensorFlow's SavedModels (shared on TF Hub or otherwise) contain
operations that work on fixed data types (often, float32 for the weights
and intermediate activations of neural networks). These cannot be
changed after the fact when loading the SavedModel (but model publishers
can choose to publish different models with different data types).
TensorFlow's SavedModels (shared on TF Hub or otherwise) contain operations that
work on fixed data types (often, float32 for the weights and intermediate
activations of neural networks). These cannot be changed after the fact when
loading the SavedModel (but model publishers can choose to publish different
models with different data types).

## Update a model version

The documentation metadata of model versions can be updated. However, the
version's assets (model files) are immutable. If you want to change the model
assets, you can publish a newer version of the model. It's a good practice to
extend the documentation with a change log that describes what changed between
versions.

0 comments on commit fe0858e

Please sign in to comment.