Skip to content

Commit

Permalink
Source snapshot: Wed Aug 2 07:00:51 UTC 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
tfdocsbot committed Aug 2, 2023
1 parent ae389fe commit 8ac0803
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
28 changes: 14 additions & 14 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: Tue Aug 1 07:00:50 UTC 2023
Updated: Wed Aug 2 07:00:51 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/da4be6a55daf003d571c92498d6523c14aaea6d2'><code>da4be6a5</code></a>
- [datasets](https://github.com/tensorflow/datasets/tree/master/docs) @ <a href='https://github.com/tensorflow/datasets/commit/6040ad2cc5dcf74d0dd0eb6a95539f371e165a7b'><code>6040ad2c</code></a>
- [docs](https://github.com/tensorflow/docs/tree/master/site/en) @ <a href='https://github.com/tensorflow/docs/commit/e753dbc7518cbd67f9d08a7e8f3c592ac8814257'><code>e753dbc7</code></a>
- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ <a href='https://github.com/tensorflow/federated/commit/d1ad01b69ed50000ddf7b5a6648b48e7970e4406'><code>d1ad01b6</code></a>
- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ <a href='https://github.com/tensorflow/federated/commit/3608caf036b4b6feb5c6ebb6515aeb44b66295dc'><code>3608caf0</code></a>
- [graphics](https://github.com/tensorflow/graphics/tree/master/tensorflow_graphics/g3doc) @ <a href='https://github.com/tensorflow/graphics/commit/c73181a4d634e6e9b4ec3460f04c052afc0e1915'><code>c73181a4</code></a>
- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ <a href='https://github.com/tensorflow/hub/commit/af6fe1c3ce53efef44df60f8b52f46cdfdc60325'><code>af6fe1c3</code></a>
- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ <a href='https://github.com/tensorflow/hub/commit/af6fe1c3ce53efef44df60f8b52f46cdfdc60325'><code>af6fe1c3</code></a>
- [io](https://github.com/tensorflow/io/tree/master/docs) @ <a href='https://github.com/tensorflow/io/commit/d8780d6cccd995704cc227ce3db5df34e86c06a9'><code>d8780d6c</code></a>
- [js](https://github.com/tensorflow/tfjs-website/tree/master/docs) @ <a href='https://github.com/tensorflow/tfjs-website/commit/878e6fcabcd9ba1a941366f769447a2d01522b40'><code>878e6fca</code></a>
- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ <a href='https://github.com/tensorflow/hub/commit/003869eaaf3fc0ff37dfcd6e4ccb36e4ade3e842'><code>003869ea</code></a>
- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ <a href='https://github.com/tensorflow/hub/commit/003869eaaf3fc0ff37dfcd6e4ccb36e4ade3e842'><code>003869ea</code></a>
- [io](https://github.com/tensorflow/io/tree/master/docs) @ <a href='https://github.com/tensorflow/io/commit/076852eea27cffd19511206faed8dc9cb7dedeb7'><code>076852ee</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/112491d0b261d767fd305e4d5d61ef1ee6d74b6b'><code>112491d0</code></a>
- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/112491d0b261d767fd305e4d5d61ef1ee6d74b6b'><code>112491d0</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/82b5609e60d3a3dca70aebeb1070b23ebc6a5756'><code>82b5609e</code></a>
- [lite](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/8b3fa0bb542bab1f0b25e91f4e2d1e5cea8c2d70'><code>8b3fa0bb</code></a>
- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/8b3fa0bb542bab1f0b25e91f4e2d1e5cea8c2d70'><code>8b3fa0bb</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/4e165c689548a0c7ecd9d635f963edc0ad9ab7b9'><code>4e165c68</code></a>
- [probability_examples](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/examples/jupyter_notebooks) @ <a href='https://github.com/tensorflow/probability/commit/4e165c689548a0c7ecd9d635f963edc0ad9ab7b9'><code>4e165c68</code></a>
- [probability](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/g3doc) @ <a href='https://github.com/tensorflow/probability/commit/bb94b967b3adfa0cd2ae2863640b8a61419fc1a0'><code>bb94b967</code></a>
- [probability_examples](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/examples/jupyter_notebooks) @ <a href='https://github.com/tensorflow/probability/commit/bb94b967b3adfa0cd2ae2863640b8a61419fc1a0'><code>bb94b967</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/6227be9d7898407acc8430f7b5b28a7881e26730'><code>6227be9d</code></a>
- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ <a href='https://github.com/tensorflow/tfx/commit/e2d81eefa3382ec0eff3393dbc41d932a9983186'><code>e2d81eef</code></a>
- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/112491d0b261d767fd305e4d5d61ef1ee6d74b6b'><code>112491d0</code></a>
- [tensorboard](https://github.com/tensorflow/tensorboard/tree/master/docs) @ <a href='https://github.com/tensorflow/tensorboard/commit/00363720c3411deaab278334c227b0a693e7e194'><code>00363720</code></a>
- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ <a href='https://github.com/tensorflow/tfx/commit/8f86fd12c50b13b1177ca6e5864bb881e7e5887d'><code>8f86fd12</code></a>
- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ <a href='https://github.com/tensorflow/tensorflow/commit/8b3fa0bb542bab1f0b25e91f4e2d1e5cea8c2d70'><code>8b3fa0bb</code></a>

11 changes: 5 additions & 6 deletions site/en-snapshot/lite/guide/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,22 +574,21 @@ print(output_data)
As an alternative to loading the model as a pre-converted `.tflite` file, you
can combine your code with the
[TensorFlow Lite Converter Python API](https://www.tensorflow.org/lite/api_docs/python/tf/lite/TFLiteConverter)
(`tf.lite.TFLiteConverter`), allowing you to convert your TensorFlow model into
the TensorFlow Lite format and then run inference:
(`tf.lite.TFLiteConverter`), allowing you to convert your Keras model into the
TensorFlow Lite format and then run inference:

```python
import numpy as np
import tensorflow as tf

img = tf.placeholder(name="img", dtype=tf.float32, shape=(1, 64, 64, 3))
img = tf.keras.Input(shape=(64, 64, 3), name="img")
const = tf.constant([1., 2., 3.]) + tf.constant([1., 4., 4.])
val = img + const
out = tf.identity(val, name="out")

# Convert to TF Lite format
with tf.Session() as sess:
converter = tf.lite.TFLiteConverter.from_session(sess, [img], [out])
tflite_model = converter.convert()
converter = tf.lite.TFLiteConverter.from_keras_model(tf.keras.models.Model(inputs=[img], outputs=[out]))
tflite_model = converter.convert()

# Load the TFLite model and allocate tensors.
interpreter = tf.lite.Interpreter(model_content=tflite_model)
Expand Down
4 changes: 0 additions & 4 deletions site/en-snapshot/mlir/_includes/tf_passes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1044,10 +1044,6 @@ _Layout assignment pass._
```
-force-data-format : Force data format for all layout sensitive ops.
```
### `-tf-legalize-hlo`

_Legalize from HLO to the TF dialect_

### `-tf-localize-var-handles`

_Creates VarHandleOps next to the operations that use them._
Expand Down

0 comments on commit 8ac0803

Please sign in to comment.