diff options
author | freedom" Koan-Sin Tan <koansin.tan@gmail.com> | 2018-01-24 04:19:07 +0800 |
---|---|---|
committer | Gunhan Gulsoy <gunan@google.com> | 2018-01-23 12:19:07 -0800 |
commit | f9462e82ac3981d7a3b5bf392477a585fb6e6912 (patch) | |
tree | 49e71fb0bee017000b5eb28d615e194e60348b10 | |
parent | 612d2c3c595eaceec230c2d383049b789d005e32 (diff) |
fix doc for benchmark_model for android (#15639)
after configure.py set framework_shared_object=true,
benchmark_model won't build for Android without tweeks. Add
'--config monolithic' to avoid confusion.
-rw-r--r-- | tensorflow/tools/benchmark/BUILD | 3 | ||||
-rw-r--r-- | tensorflow/tools/benchmark/README.md | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/tools/benchmark/BUILD b/tensorflow/tools/benchmark/BUILD index caa6629c49..6ed2594e6a 100644 --- a/tensorflow/tools/benchmark/BUILD +++ b/tensorflow/tools/benchmark/BUILD @@ -61,10 +61,11 @@ tf_cc_test( # This binary may be built for either desktop or Android. # A typical Android build command will look like the following: -# bazel build -c opt tensorflow/core:android_tensorflow_lib \ +# bazel build tensorflow/core:android_tensorflow_lib \ # --crosstool_top=//external:android/crosstool \ # --cpu=armeabi-v7a \ # --host_crosstool_top=@bazel_tools//tools/cpp:toolchain +# --config monolithic tf_cc_binary( name = "benchmark_model", testonly = 1, diff --git a/tensorflow/tools/benchmark/README.md b/tensorflow/tools/benchmark/README.md index ca0da2d41b..e64af2bfe1 100644 --- a/tensorflow/tools/benchmark/README.md +++ b/tensorflow/tools/benchmark/README.md @@ -17,6 +17,7 @@ bazel build -c opt \ --crosstool_top=//external:android/crosstool \ --cpu=armeabi-v7a \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ + --config monolithic \ tensorflow/tools/benchmark:benchmark_model ``` |