Skip to content

Commit

Permalink
Update tflite wheel version to 1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
apivovarov committed Jun 25, 2019
1 parent cbec5b9 commit 5aa2d24
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions tutorials/frontend/from_tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,32 @@
pip install flatbuffers --user
To install TFlite packages, you could use our prebuilt wheel:
.. code-block:: bash
# For python3:
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-0.0.1-py3-none-any.whl
pip install tflite-0.0.1-py3-none-any.whl --user
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-1.13.1-py3-none-any.whl
pip3 install tflite-1.13.1-py3-none-any.whl --user
# For python2:
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-0.0.1-py2-none-any.whl
pip install tflite-0.0.1-py2-none-any.whl --user
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-1.13.1-py2-none-any.whl
pip install tflite-1.13.1-py2-none-any.whl --user
or you could clone FrozenGene/tflite repo which contains generated tflite python module
.. code-block:: bash
# clone FrozenGene/tflite repo to tflite_repo folder
git clone https://github.com/FrozenGene/tflite.git tflite_repo
# Add git repo folder (which contains generated tflite module) to PYTHONPATH.
export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}$(pwd)/tflite_repo
or you could generate TFLite package by yourself. The steps are as following:
or you could generate TFLite package yourself. The steps are the following:
.. code-block:: bash
Expand All @@ -57,13 +69,13 @@
# Generate TFLite package.
flatc --python schema.fbs
# Add it to PYTHONPATH.
export PYTHONPATH=/path/to/tflite
# Add current folder (which contains generated tflite module) to PYTHONPATH.
export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}$(pwd)
Now please check if TFLite package is installed successfully, ``python -c "import tflite"``
Below you can find an example for how to compile TFLite model using TVM.
Below you can find an example on how to compile TFLite model using TVM.
"""
######################################################################
# Utils for downloading and extracting zip files
Expand Down

0 comments on commit 5aa2d24

Please sign in to comment.