Skip to content

Commit

Permalink
Source snapshot: Thu Aug 10 07:00:45 UTC 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
tfdocsbot committed Aug 10, 2023
1 parent 1ff89ff commit 613009d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 15 deletions.
22 changes: 11 additions & 11 deletions site/en-snapshot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ the projects listed below.

Please submit translations from the GitLocalize project: https://gitlocalize.com/tensorflow/docs-l10n

Updated: Wed Aug 9 07:00:46 UTC 2023
Updated: Thu Aug 10 07:00:45 UTC 2023

Projects and last commit:

- [addons](https://github.com/tensorflow/addons/tree/master/docs) @ <a href='https://github.com/tensorflow/addons/commit/5dd5f65827c37e9b9b616b79ed93da856b57ffe5'><code>5dd5f658</code></a>
- [agents](https://github.com/tensorflow/agents/tree/master/docs) @ <a href='https://github.com/tensorflow/agents/commit/eca1093d3a047e538f17f6ab92ab4d8144284f23'><code>eca1093d</code></a>
- [datasets](https://github.com/tensorflow/datasets/tree/master/docs) @ <a href='https://github.com/tensorflow/datasets/commit/d279f895d27c0b158307af38c81a8dbb55ef55d6'><code>d279f895</code></a>
- [docs](https://github.com/tensorflow/docs/tree/master/site/en) @ <a href='https://github.com/tensorflow/docs/commit/208bb04f5ed6e035f1d091b73ab2a758329e93fd'><code>208bb04f</code></a>
- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ <a href='https://github.com/tensorflow/federated/commit/80eee2570d8e23a3e2e8be19f01bf56151840ebb'><code>80eee257</code></a>
- [datasets](https://github.com/tensorflow/datasets/tree/master/docs) @ <a href='https://github.com/tensorflow/datasets/commit/45a45ed4c27019db519929e1191d0a2f6d0566c1'><code>45a45ed4</code></a>
- [docs](https://github.com/tensorflow/docs/tree/master/site/en) @ <a href='https://github.com/tensorflow/docs/commit/1ed8d59993f69451da6e76c648fafc9aff0f6454'><code>1ed8d599</code></a>
- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ <a href='https://github.com/tensorflow/federated/commit/ea1a4e89b852292559ca6fdf5c57ac39f7bcef7b'><code>ea1a4e89</code></a>
- [graphics](https://github.com/tensorflow/graphics/tree/master/tensorflow_graphics/g3doc) @ <a href='https://github.com/tensorflow/graphics/commit/1b0203eb538f2b6a1013ec7736d0d548416f059a'><code>1b0203eb</code></a>
- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ <a href='https://github.com/tensorflow/hub/commit/d6946886a1454a1441072c8f5a6acdb63965a6cf'><code>d6946886</code></a>
- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ <a href='https://github.com/tensorflow/hub/commit/d6946886a1454a1441072c8f5a6acdb63965a6cf'><code>d6946886</code></a>
- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ <a href='https://github.com/tensorflow/hub/commit/fa1cf068b9cf034b59e7cd59a6ac0ce7e21a4fd4'><code>fa1cf068</code></a>
- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ <a href='https://github.com/tensorflow/hub/commit/fa1cf068b9cf034b59e7cd59a6ac0ce7e21a4fd4'><code>fa1cf068</code></a>
- [io](https://github.com/tensorflow/io/tree/master/docs) @ <a href='https://github.com/tensorflow/io/commit/8b87c3b3dcc8c28ca49f2e489c96c29b70632308'><code>8b87c3b3</code></a>
- [js](https://github.com/tensorflow/tfjs-website/tree/master/docs) @ <a href='https://github.com/tensorflow/tfjs-website/commit/6f4931248fac970a5da35a2988b5b0e17e0644d7'><code>6f493124</code></a>
- [keras_guides](https://github.com/tensorflow/docs/tree/snapshot-keras/site/en/guide/keras) @ <a href='https://github.com/tensorflow/docs/commit/1553ae1e4a149be71703e2ee60173b3d1e0e8c00'><code>1553ae1e</code></a>
- [lattice](https://github.com/tensorflow/lattice/tree/master/docs) @ <a href='https://github.com/tensorflow/lattice/commit/7ea1727de1e0309eb324296bc445e0bf5c5c6d74'><code>7ea1727d</code></a>
- [lite](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/884d3428f6ce469fd22d4d83ccdacca7be918532'><code>884d3428</code></a>
- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/884d3428f6ce469fd22d4d83ccdacca7be918532'><code>884d3428</code></a>
- [lite](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/7903f318f928cc114a1470408d2c0372fc758f99'><code>7903f318</code></a>
- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/7903f318f928cc114a1470408d2c0372fc758f99'><code>7903f318</code></a>
- [model_optimization](https://github.com/tensorflow/model-optimization/tree/master/tensorflow_model_optimization/g3doc) @ <a href='https://github.com/tensorflow/model-optimization/commit/4733c85f21d1eb570fd575ea201cb211a485bfb0'><code>4733c85f</code></a>
- [neural_structured_learning](https://github.com/tensorflow/neural-structured-learning/tree/master/g3doc) @ <a href='https://github.com/tensorflow/neural-structured-learning/commit/aaa9d3e4733f3b551823b86f67cf8a572acfeb7d'><code>aaa9d3e4</code></a>
- [probability](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/g3doc) @ <a href='https://github.com/tensorflow/probability/commit/85cf141b97fc910a9dc6a9917faf299b73a1fd2c'><code>85cf141b</code></a>
- [probability_examples](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/examples/jupyter_notebooks) @ <a href='https://github.com/tensorflow/probability/commit/85cf141b97fc910a9dc6a9917faf299b73a1fd2c'><code>85cf141b</code></a>
- [quantum](https://github.com/tensorflow/quantum/tree/master/docs) @ <a href='https://github.com/tensorflow/quantum/commit/f56257bceb988b743790e1e480eac76fd036d4ff'><code>f56257bc</code></a>
- [tensorboard](https://github.com/tensorflow/tensorboard/tree/master/docs) @ <a href='https://github.com/tensorflow/tensorboard/commit/1e7f1c93e18e36b3eb875c19840878868b9e25f3'><code>1e7f1c93</code></a>
- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ <a href='https://github.com/tensorflow/tfx/commit/51650cf215369d466e13c0f41acd3b50e7148d53'><code>51650cf2</code></a>
- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/884d3428f6ce469fd22d4d83ccdacca7be918532'><code>884d3428</code></a>
- [tensorboard](https://github.com/tensorflow/tensorboard/tree/master/docs) @ <a href='https://github.com/tensorflow/tensorboard/commit/5668e5ea49a2beaa41ae702127b26b90e1c2a738'><code>5668e5ea</code></a>
- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ <a href='https://github.com/tensorflow/tfx/commit/e268d26c4b9d3b48319d61da3dbfda00ef329f3b'><code>e268d26c</code></a>
- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/7903f318f928cc114a1470408d2c0372fc758f99'><code>7903f318</code></a>

Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@
},
"outputs": [],
"source": [
"from typing import Any\n",
"import functools\n",
"import attr\n",
"import attrs\n",
"import numpy as np\n",
"import tensorflow as tf\n",
"import tensorflow_federated as tff"
Expand Down Expand Up @@ -263,10 +264,10 @@
},
"outputs": [],
"source": [
"@attr.s(eq=False, frozen=True, slots=True)\n",
"@attrs.define(eq=False, frozen=True)\n",
"class ServerState(object):\n",
" trainable_weights = attr.ib()\n",
" optimizer_state = attr.ib()\n",
" trainable_weights: Any\n",
" optimizer_state: Any\n",
"\n",
"@tf.function\n",
"def server_update(server_state, mean_model_delta, server_optimizer):\n",
Expand Down
32 changes: 32 additions & 0 deletions site/en-snapshot/guide/saved_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,38 @@
"imported_with_output_name.signatures['serving_default'].structured_outputs"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "Q4bCK55x1IBW"
},
"source": [
"## Proto-splitting\n",
"\n",
"Note: This feature will be part of the TensorFlow 2.15 release. It is currently available in the nightly build which you cqan install with `pip install tf-nightly`.\n",
"\n",
"Due to limits of the protobuf implementation, proto sizes cannot exceed 2GB. This can lead to the following errors when attempting to save very large models:\n",
"\n",
"```\n",
"ValueError: Message tensorflow.SavedModel exceeds maximum protobuf size of 2GB: ...\n",
"```\n",
"\n",
"```\n",
"google.protobuf.message.DecodeError: Error parsing message as the message exceeded the protobuf limit with type 'tensorflow.GraphDef'\n",
"```\n",
"\n",
"If you wish to save models that exceed the 2GB limit, then you'll need to save using the new proto-splitting option:\n",
"\n",
"```python\n",
"tf.saved_model.save(\n",
" ...,\n",
" options=tf.saved_model.SaveOptions(experimental_image_format=True)\n",
")\n",
"```\n",
"\n",
"More information can be found in the [Proto Splitter / Merger Library guide](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/proto_splitter/in-depth-guide.md)."
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down

0 comments on commit 613009d

Please sign in to comment.