Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 024507b

Browse files
andrewharptensorflower-gardener
authored andcommitted
Build and expose benchmark_model binary as part of Android nightly build, and also run build_all_android.sh for better build coverage.
Change: 144158273
1 parent 8022c5d commit 024507b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tensorflow/tools/ci_build/builds/android_full.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ do
4343
--host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
4444
//tensorflow/core:android_tensorflow_lib \
4545
//tensorflow/contrib/android:libtensorflow_inference.so \
46-
//tensorflow/examples/android:libtensorflow_demo.so
46+
//tensorflow/examples/android:libtensorflow_demo.so \
47+
//tensorflow/tools/benchmark:benchmark_model
4748

4849
copy_lib bazel-bin/tensorflow/core/libandroid_tensorflow_lib.lo
4950
copy_lib bazel-bin/tensorflow/contrib/android/libtensorflow_inference.so
5051
copy_lib bazel-bin/tensorflow/examples/android/libtensorflow_demo.so
52+
copy_lib bazel-bin/tensorflow/tools/benchmark/benchmark_model
5153
done
5254

5355
# Build Jar and also demo containing native libs for all architectures.
@@ -63,3 +65,6 @@ bazel --bazelrc=/dev/null build -c opt --fat_apk_cpu=${CPUS} \
6365
echo "Copying demo and Jar to ${OUT_DIR}"
6466
cp bazel-bin/tensorflow/examples/android/tensorflow_demo.apk \
6567
bazel-bin/tensorflow/contrib/android/libandroid_tensorflow_inference_java.jar ${OUT_DIR}
68+
69+
# Test Makefile build just to make sure it still works.
70+
tensorflow/contrib/makefile/build_all_android.sh

0 commit comments

Comments
 (0)