From d49fa8205007abac6e4af1e0cf90d1a24338ab97 Mon Sep 17 00:00:00 2001 From: eclipsess Date: Mon, 2 Jul 2018 16:21:38 +0800 Subject: [PATCH] remove convbasic unuse bias --- .../kernel/central-arm-func/conv_arm_func.h | 2 +- tools/android-debug-script/run.sh | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tools/android-debug-script/run.sh diff --git a/src/operators/kernel/central-arm-func/conv_arm_func.h b/src/operators/kernel/central-arm-func/conv_arm_func.h index c4fa086daa..7f27b99098 100644 --- a/src/operators/kernel/central-arm-func/conv_arm_func.h +++ b/src/operators/kernel/central-arm-func/conv_arm_func.h @@ -101,7 +101,7 @@ inline void ConvBasic(const ConvParam ¶m) { Tensor filter_slice = filter.Slice(g * out_step, (g + 1) * out_step); math::matmul(filter_slice, false, col_matrix, false, static_cast(1), &out_slice, - static_cast(1)); + static_cast(0)); } } } diff --git a/tools/android-debug-script/run.sh b/tools/android-debug-script/run.sh new file mode 100644 index 0000000000..cc5ac1479b --- /dev/null +++ b/tools/android-debug-script/run.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env sh + +push_fn () { +sh build.sh android +MODELS_PATH="../test/models/*" +MODELS_SRC="../test/models" +IMAGE_PATH="../test/images/*" +EXE_FILE="../test/build/*" +EXE_DIR="data/local/tmp/bin" +adb shell mkdir ${EXE_DIR} +MODELS_DIR="data/local/tmp/models" +adb shell mkdir ${MODELS_DIR} +for file in `ls ${MODELS_SRC}` +do + adb shell mkdir ${MODELS_DIR}"/"${file} +done + +if [[ -d "../src/operators/kernel/mali/ACL_Android/build" ]]; then +ACL_BUILD_PATH="../src/operators/kernel/mali/ACL_Android/build/*" +adb push ${ACL_BUILD_PATH} ${EXE_DIR} +fi + +IMAGES_DIR="data/local/tmp/images" +adb shell mkdir ${IMAGES_DIR} +LIB_PATH="../build/release/arm-v7a/build/*" +adb push ${EXE_FILE} ${EXE_DIR} +adb push ${LIB_PATH} ${EXE_DIR} +if [[ $1 != "npm" ]]; then +adb push ${IMAGE_PATH} ${IMAGES_DIR} +adb push ${MODELS_PATH} ${MODELS_DIR} +fi +} + +if [[ $1 == "npm" ]]; then +push_fn $1 +else +push_fn +fi -- GitLab