Created
May 8, 2018 05:35
-
-
Save haoxi911/c00d27c2aab15e79d4bb822bf44d1573 to your computer and use it in GitHub Desktop.
Script to convert TensorFlow GraphDef to TensorFlow Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazel-bin/tensorflow/contrib/lite/toco/toco \ | |
--input_file=/home/ubuntu/pps_output/output_graph.pb \ | |
--output_file=/home/ubuntu/pps_output/output_graph.tflite \ | |
--input_arrays=Placeholder \ | |
--output_arrays=final_result \ | |
--inference_type=FLOAT \ | |
--input_shapes=1,224,224,3 \ | |
--input_format=TENSORFLOW_GRAPHDEF \ | |
--output_format=TFLITE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment