提交 e600acf8 编写于 作者: L liuruilong

add central_arm_func folder

上级 5f84ccc8
//
// Created by liuRuiLong on 2018/6/28.
//
#ifndef PADDLE_MOBILE_BATCHNORM_FUNC_H
#define PADDLE_MOBILE_BATCHNORM_FUNC_H
#endif //PADDLE_MOBILE_BATCHNORM_FUNC_H
//
// Created by liuRuiLong on 2018/6/28.
//
#ifndef PADDLE_MOBILE_CONV_ADD_RELU_FUNC_H
#define PADDLE_MOBILE_CONV_ADD_RELU_FUNC_H
#endif //PADDLE_MOBILE_CONV_ADD_RELU_FUNC_H
//
// Created by liuRuiLong on 2018/6/28.
//
#ifndef PADDLE_MOBILE_CONV_FUNC_H
#define PADDLE_MOBILE_CONV_FUNC_H
#endif //PADDLE_MOBILE_CONV_FUNC_H
#!/usr/bin/env sh
# auto build and run
BUILDNET="mobilenetssd"
TESTUNIT="test-mobilenetssd"
push_fn () {
sh build.sh android ${BUILDNET}
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
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
adb shell "cd /data/local/tmp/bin; LD_LIBRARY_PATH=. ./${TESTUNIT}"
}
if [[ $1 == "npm" ]]; then
push_fn $1
else
push_fn
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册