diff --git a/site/en-snapshot/README.md b/site/en-snapshot/README.md index f9f8769f4b..bdcb8ac57a 100644 --- a/site/en-snapshot/README.md +++ b/site/en-snapshot/README.md @@ -6,7 +6,7 @@ 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: @@ -14,22 +14,22 @@ Projects and last commit: - [agents](https://github.com/tensorflow/agents/tree/master/docs) @ da4be6a5 - [datasets](https://github.com/tensorflow/datasets/tree/master/docs) @ 6040ad2c - [docs](https://github.com/tensorflow/docs/tree/master/site/en) @ e753dbc7 -- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ d1ad01b6 +- [federated](https://github.com/tensorflow/federated/tree/main/docs) @ 3608caf0 - [graphics](https://github.com/tensorflow/graphics/tree/master/tensorflow_graphics/g3doc) @ c73181a4 -- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ af6fe1c3 -- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ af6fe1c3 -- [io](https://github.com/tensorflow/io/tree/master/docs) @ d8780d6c -- [js](https://github.com/tensorflow/tfjs-website/tree/master/docs) @ 878e6fca +- [hub](https://github.com/tensorflow/hub/tree/master/docs) @ 003869ea +- [hub_tutorials](https://github.com/tensorflow/hub/tree/master/examples/colab) @ 003869ea +- [io](https://github.com/tensorflow/io/tree/master/docs) @ 076852ee +- [js](https://github.com/tensorflow/tfjs-website/tree/master/docs) @ 6f493124 - [keras_guides](https://github.com/tensorflow/docs/tree/snapshot-keras/site/en/guide/keras) @ 1553ae1e - [lattice](https://github.com/tensorflow/lattice/tree/master/docs) @ 7ea1727d -- [lite](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc) @ 112491d0 -- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ 112491d0 -- [model_optimization](https://github.com/tensorflow/model-optimization/tree/master/tensorflow_model_optimization/g3doc) @ 82b5609e +- [lite](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc) @ 8b3fa0bb +- [mlir](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/g3doc) @ 8b3fa0bb +- [model_optimization](https://github.com/tensorflow/model-optimization/tree/master/tensorflow_model_optimization/g3doc) @ 4733c85f - [neural_structured_learning](https://github.com/tensorflow/neural-structured-learning/tree/master/g3doc) @ aaa9d3e4 -- [probability](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/g3doc) @ 4e165c68 -- [probability_examples](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/examples/jupyter_notebooks) @ 4e165c68 +- [probability](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/g3doc) @ bb94b967 +- [probability_examples](https://github.com/tensorflow/probability/tree/main/tensorflow_probability/examples/jupyter_notebooks) @ bb94b967 - [quantum](https://github.com/tensorflow/quantum/tree/master/docs) @ f56257bc -- [tensorboard](https://github.com/tensorflow/tensorboard/tree/master/docs) @ 6227be9d -- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ e2d81eef -- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ 112491d0 +- [tensorboard](https://github.com/tensorflow/tensorboard/tree/master/docs) @ 00363720 +- [tfx](https://github.com/tensorflow/tfx/tree/master/docs) @ 8f86fd12 +- [xla](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/xla/g3doc) @ 8b3fa0bb diff --git a/site/en-snapshot/lite/guide/inference.md b/site/en-snapshot/lite/guide/inference.md index 2ea6ec2671..16ede2fd71 100644 --- a/site/en-snapshot/lite/guide/inference.md +++ b/site/en-snapshot/lite/guide/inference.md @@ -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) diff --git a/site/en-snapshot/mlir/_includes/tf_passes.md b/site/en-snapshot/mlir/_includes/tf_passes.md index 2e4b41d814..c7140404bd 100644 --- a/site/en-snapshot/mlir/_includes/tf_passes.md +++ b/site/en-snapshot/mlir/_includes/tf_passes.md @@ -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._