Commit d1a06855 authored by freedom" Koan-Sin Tan's avatar freedom" Koan-Sin Tan Committed by Shanqing Cai
Browse files

Make build rule for //tensorflow/contrib/lite/tools:benchmark_model (#15005)

* Make buid rule for //tensorflow/contrib/lite/tools:benchmark_model

Note that this benchmark_model.cc is not completed yet. It doesn't
load and models.

1. With proper Android SDK and NDK settings in WORKSPACE, we can
   build armeabi-v7a or arm64-v8a binary, e.g.,

   > bazel build --cxxopt='--std=c++11' \
     --crosstool_top=//external:android/crosstool \
     --cpu=arm64-v8a \
     --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
    //tensorflow/contrib/lite/tools:benchmark_model

2. It's also possible to build this for Linux or OS X, e.g.,

   >  bazel --config opt --cxxopt='--std=c++11' \
     //tensorflow/contrib/lite/tools:benchmark_model
parent 4595f1cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment