Skip to content

Instantly share code, notes, and snippets.

@petewarden
Created July 24, 2017 19:48
Show Gist options
  • Save petewarden/d119931261c809ea4d7063c24a8e487f to your computer and use it in GitHub Desktop.
Save petewarden/d119931261c809ea4d7063c24a8e487f to your computer and use it in GitHub Desktop.
bazel build -c opt --config=android_arm64 \
tensorflow/tools/benchmark:benchmark_model
adb push bazel-bin/tensorflow/tools/benchmark/benchmark_model \
/data/local/tmp
adb push /tmp/tensorflow_inception_graph.pb /data/local/tmp/
adb shell '/data/local/tmp/benchmark_model \
--graph=/data/local/tmp/tensorflow_inception_graph.pb \
--input_layer="Mul" --input_layer_shape="1,299,299,3" \
--input_layer_type="float" --output_layer="softmax:0" \
--show_run_order=false --show_time=false
--show_memory=false --show_summary=true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment