From fc0418faf11dbcd690716a280c4b691680383ddd Mon Sep 17 00:00:00 2001 From: liuruilong Date: Fri, 1 Jun 2018 16:42:12 +0800 Subject: [PATCH] add push2android images folder --- scripts/push2android.sh | 3 +++ src/operators/fusion_conv_add_relu_op.h | 2 +- test/framework/test_optimize.cpp | 2 +- test/test_helper.h | 3 +-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/push2android.sh b/scripts/push2android.sh index 44b0ee32e9..ef00f58a96 100644 --- a/scripts/push2android.sh +++ b/scripts/push2android.sh @@ -2,12 +2,15 @@ push_fn () { MODELS_PATH="../test/models/*" +IMAGE_PATH="../test/images/*" EXE_FILE="../test/build/*" EXE_DIR="data/local/tmp/bin" MODELS_DIR="data/local/tmp/models" +IMAGES_DIR="data/local/tmp/images" LIB_PATH="../build/release/arm-v7a/build/*" adb push ${EXE_FILE} ${EXE_DIR} adb push ${LIB_PATH} ${EXE_DIR} +adb push ${IMAGE_PATH} ${IMAGES_DIR} adb push ${MODELS_PATH} ${MODELS_DIR} echo "test files sync completed" } diff --git a/src/operators/fusion_conv_add_relu_op.h b/src/operators/fusion_conv_add_relu_op.h index e93c910d2b..2b7f0274f6 100644 --- a/src/operators/fusion_conv_add_relu_op.h +++ b/src/operators/fusion_conv_add_relu_op.h @@ -37,7 +37,7 @@ class FushionConvAddReluOpMatcher : public framework::FusionOpMatcher { std::string Type() { return G_OP_TYPE_FUSION_CONV_ADD_RELU; } }; -class FusionFcOp { +class ConvAddReluOp { public: private: }; diff --git a/test/framework/test_optimize.cpp b/test/framework/test_optimize.cpp index f0392cfec0..faa69847c6 100644 --- a/test/framework/test_optimize.cpp +++ b/test/framework/test_optimize.cpp @@ -20,7 +20,7 @@ limitations under the License. */ int main() { paddle_mobile::Loader loader; // "../../../test/models/googlenet" - auto program = loader.Load(g_googlenet); + auto program = loader.Load(g_mobilenet_ssd); paddle_mobile::framework::ProgramOptimize optimize; // program.originProgram->Description("origin"); auto optimize_program = optimize.FushionOptimize(program.originProgram); diff --git a/test/test_helper.h b/test/test_helper.h index fc4ed6c91d..14ade768e7 100644 --- a/test/test_helper.h +++ b/test/test_helper.h @@ -26,8 +26,7 @@ static const std::string g_googlenet = "../models/googlenet"; static const std::string g_mobilenet = "../models/mobilenet"; static const std::string g_mobilenet_ssd = "../models/mobilenet+ssd"; static const std::string g_squeezenet = "../models/squeezenet"; -static const std::string g_resnet = - "../models/image_classification_resnet.inference.model"; +static const std::string g_resnet = "../models/resnet"; static const std::string g_yolo = "../models/yolo"; static const std::string g_test_image_1x3x224x224 = "../images/test_image_1x3x224x224_float"; -- GitLab