提交 9b2c18bc 编写于 作者: 李寅

Merge branch 'remove_hexagon_flag_in_validate_script' into 'master'

remove hexagon flag in validate_model.sh, and update submodule

See merge request !5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Must run at root dir of mace project. # Must run at root dir of mace project.
set +x set +x
Usage() { Usage() {
echo 'Usage: bash tools/validate_gcn.sh tools/gcn.config tf_model_path model_tag image_size runtime[gpu/dsp] [tuning]' echo 'Usage: bash tools/validate_model.sh tools/model.config tf_model_path model_tag image_size runtime[gpu/dsp] [tuning]'
} }
if [ $# -lt 5 ];then if [ $# -lt 5 ];then
...@@ -60,10 +60,6 @@ build_and_run() ...@@ -60,10 +60,6 @@ build_and_run()
round=2 round=2
fi fi
if [ x"$RUNTIME" = x"dsp" ]; then
HEXAGON_MODE_BUILD_FLAGS="--define hexagon=true"
fi
bazel build --verbose_failures -c opt --strip always examples:mace_run \ bazel build --verbose_failures -c opt --strip always examples:mace_run \
--crosstool_top=//external:android/crosstool \ --crosstool_top=//external:android/crosstool \
--host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
...@@ -74,7 +70,7 @@ build_and_run() ...@@ -74,7 +70,7 @@ build_and_run()
--copt="-DMACE_MODEL_TAG=${MODEL_TAG}" \ --copt="-DMACE_MODEL_TAG=${MODEL_TAG}" \
--copt="-DMACE_OBFUSCATE_LITERALS" \ --copt="-DMACE_OBFUSCATE_LITERALS" \
$PRODUCTION_MODE_BUILD_FLAGS \ $PRODUCTION_MODE_BUILD_FLAGS \
$HEXAGON_MODE_BUILD_FLAGS || exit -1 --define hexagon=true || exit -1
adb shell "mkdir -p ${PHONE_DATA_DIR}" || exit -1 adb shell "mkdir -p ${PHONE_DATA_DIR}" || exit -1
if [ "$PRODUCTION_MODE" = false ]; then if [ "$PRODUCTION_MODE" = false ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册