Skip to content

Commit

Permalink
UPdate tflite converter diagram.
Browse files Browse the repository at this point in the history
Rename URL paths.

PiperOrigin-RevId: 216889190
  • Loading branch information
lamberta authored and tensorflower-gardener committed Oct 12, 2018
1 parent e19fa8a commit 865b278
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 37 deletions.
17 changes: 9 additions & 8 deletions tensorflow/contrib/lite/g3doc/_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ upper_tabs:
path: /lite/ios
- title: TensorFlow Lite for Raspberry Pi
path: /lite/rpi
- heading: TFLite Converter

- heading: TF Lite converter
- title: Overview
path: /lite/tflite_convert/
- title: Python API
path: /lite/tflite_convert/python_api
- title: Command Line Examples
path: /lite/tflite_convert/cmdline_examples
- title: Command Line Reference
path: /lite/tflite_convert/cmdline_reference
path: /lite/convert/
- title: Python API guide
path: /lite/convert/python_api
- title: Command line examples
path: /lite/convert/cmdline_examples
- title: Command line reference
path: /lite/convert/cmdline_reference

- title: TF Mobile
style: accordion
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/lite/g3doc/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ landing_page:
TensorFlow Lite Converter.
buttons:
- label: Read the converter guide
path: /lite/tflite_convert/python_api
path: /lite/convert/
classname: button button-primary tfo-button-primary
- heading: Deploy
icon:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TensorFlow Lite Converter command-line examples
# Converter command-line examples

This page shows how to use the TensorFlow Lite Converter in the command line.

Expand Down Expand Up @@ -306,12 +306,12 @@ Sample output files can be seen here below. Note that it is the same
<table><tr>
<td>
<a target="_blank" href="https://storage.googleapis.com/download.tensorflow.org/example_images/toco_AT_IMPORT.dot.pdf">
<img src="https://www.tensorflow.org/images/tflite_convert/tflite_convert_before.png"/>
<img src="../images/convert/sample_before.png"/>
</a>
</td>
<td>
<a target="_blank" href="https://storage.googleapis.com/download.tensorflow.org/example_images/toco_AFTER_TRANSFORMATIONS.dot.pdf">
<img src="https://www.tensorflow.org/images/tflite_convert/tflite_convert_after.png"/>
<img src="../images/convert/sample_after.png"/>
</a>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TensorFlow Lite Converter command-line glossary
# Converter command-line reference

This page is complete reference of command-line flags used by the TensorFlow
Lite Converter's command line starting from TensorFlow 1.9 up until the most
Expand Down
19 changes: 19 additions & 0 deletions tensorflow/contrib/lite/g3doc/convert/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# TensorFlow Lite Converter

The TensorFlow Lite Converter takes a TensorFlow graph file and creates a graph
file used by the TensorFlow Lite interpreter.

## From model training to device deployment

After a TensorFlow model is trained, the TensorFlow Lite converter uses that
model to generate a TensorFlow Lite [FlatBuffer](https://google.github.io/flatbuffers/)
file (`.tflite`). The converter supports as input:
[SavedModels](https://www.tensorflow.org/guide/saved_model#using_savedmodel_with_estimators),
frozen graphs (models generated by
[freeze_graph.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/freeze_graph.py)),
and `tf.keras` models. The TensorFlow Lite `FlatBuffer` file is deployed to a
client device (generally a mobile or embedded device), and the TensorFlow Lite
interpreter uses the compressed model for on-device inference. This conversion
process is shown in the diagram below:

![TFLite converter workflow](../images/convert/workflow.svg)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TensorFlow Lite Converter & Interpreter Python API reference
# Converter Python API guide

This page provides examples on how to use the TensorFlow Lite Converter and the
TensorFlow Lite interpreter using the Python API.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tensorflow/contrib/lite/g3doc/images/convert/workflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions tensorflow/contrib/lite/g3doc/tflite_convert/index.md

This file was deleted.

This file was deleted.

0 comments on commit 865b278

Please sign in to comment.