提交 3986b066 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Ensure the Eager Runtime builds for Android. For the benefit of TF Lite it is

important that the Eager Runtime remains compatible with Android. For now only
eager:execute is built since this is the main target TF Lite will depend on.

PiperOrigin-RevId: 207012943
上级 a4f75567
......@@ -26,13 +26,19 @@ configure_android_workspace
# android_full.sh
echo "========== TensorFlow Demo Build Test =========="
TARGETS=
TARGETS+=" //tensorflow/examples/android:tensorflow_demo"
# Also build the Eager Runtime so it remains compatible with Android for the
# benefits of clients like TensorFlow Lite. For now it is enough to build only
# :execute, which what TF Lite needs.
TARGETS+=" //tensorflow/core/common_runtime/eager:execute"
# Enable sandboxing so that zip archives don't get incorrectly packaged
# in assets/ dir (see https://github.com/bazelbuild/bazel/issues/2334)
# TODO(gunan): remove extra flags once sandboxing is enabled for all builds.
bazel --bazelrc=/dev/null build \
--compilation_mode=opt --cxxopt=-std=c++11 --fat_apk_cpu=x86_64 \
--spawn_strategy=sandboxed --genrule_strategy=sandboxed \
//tensorflow/examples/android:tensorflow_demo
${TARGETS}
echo "========== Makefile Build Test =========="
# Test Makefile build just to make sure it still works.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册