提交 4e30d7d1 编写于 作者: E eclipsess

const &param -> *param

上级 37e07b54
//
// Created by Yang,Sui on 2018/6/28.
//
//
// Created by Yang,Sui on 2018/6/28.
//
#ifndef PADDLE_MOBILE_FUSION_CONV_ADD_BN_RELU_OP_H
#define PADDLE_MOBILE_FUSION_CONV_ADD_BN_RELU_OP_H
#endif //PADDLE_MOBILE_FUSION_CONV_ADD_BN_RELU_OP_H
//
// Created by Yang,Sui on 2018/6/28.
//
//
// Created by Yang,Sui on 2018/6/28.
//
#ifndef PADDLE_MOBILE_CONV_ADD_BN_RELU_FUNC_H
#define PADDLE_MOBILE_CONV_ADD_BN_RELU_FUNC_H
#endif //PADDLE_MOBILE_CONV_ADD_BN_RELU_FUNC_H
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#pragma once
#ifdef FUSION_CONVADD_BN_RELU_OP
#include <vector>
#include "framework/ddim.h"
#include "framework/operator.h"
#include "operators/math/conv_func.h"
#include "operators/math/im2col.h"
#include "operators/math/math_function.h"
#include "operators/math/vol2col.h"
#include "operators/op_param.h"
namespace paddle_mobile {
namespace operators {
using framework::DDim;
using framework::OpKernelBase;
template <typename DeviceType, typename T>
class ConvAddBNReluKernel
: public OpKernelBase<DeviceType, FusionConvAddBNReluParam> {
public:
void Compute(const FusionConvAddBNReluParam &param) const;
bool Init(const FusionConvAddBNReluParam &para) const;
};
} // namespace operators
} // namespace paddle_mobile
#endif
......@@ -31,7 +31,7 @@ build_for_mac() {
}
build_for_android() {
rm -rf "../build"
#rm -rf "../build"
if [ -z "${ANDROID_NDK}" ]; then
echo "ANDROID_NDK not found!"
exit -1
......
#!/usr/bin/env sh
# auto build and run
BUILDNET="mobilenetssds"
TESTUNIT="test-mobilenet"
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.
先完成此消息的编辑!
想要评论请 注册