From e2c1630a48251d75a800bc61fcc17245eab0b747 Mon Sep 17 00:00:00 2001 From: Yan Chunwei Date: Wed, 29 May 2019 17:00:18 +0800 Subject: [PATCH] fix compile (#17722) --- paddle/fluid/lite/operators/CMakeLists.txt | 2 +- paddle/fluid/lite/operators/op_params.h | 1 + paddle/fluid/lite/tools/build.sh | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/lite/operators/CMakeLists.txt b/paddle/fluid/lite/operators/CMakeLists.txt index 4190e6037cf..cfb40eebdb1 100644 --- a/paddle/fluid/lite/operators/CMakeLists.txt +++ b/paddle/fluid/lite/operators/CMakeLists.txt @@ -14,7 +14,7 @@ cc_library(mean_op_lite SRCS mean_op.cc DEPS ${op_DEPS}) cc_library(fill_constant_op_lite SRCS fill_constant_op.cc DEPS ${op_DEPS}) cc_library(sgd_op_lite SRCS sgd_op.cc DEPS ${op_DEPS}) -cc_library(op_params_lite SRCS op_params.cc DEPS ${tensor_lite} any_lite) +cc_library(op_params_lite SRCS op_params.cc DEPS ${tensor_lite} any_lite framework_proto_lite) set(ops_lite fc_op_lite relu_op_lite diff --git a/paddle/fluid/lite/operators/op_params.h b/paddle/fluid/lite/operators/op_params.h index 77d78b481a7..d3093c48894 100644 --- a/paddle/fluid/lite/operators/op_params.h +++ b/paddle/fluid/lite/operators/op_params.h @@ -15,6 +15,7 @@ #pragma once #include #include "paddle/fluid/lite/core/compatible_tensor.h" +#include "paddle/fluid/lite/core/framework.pb.h" #include "paddle/fluid/lite/utils/all.h" /* diff --git a/paddle/fluid/lite/tools/build.sh b/paddle/fluid/lite/tools/build.sh index 37a04f901bc..163cb630e73 100755 --- a/paddle/fluid/lite/tools/build.sh +++ b/paddle/fluid/lite/tools/build.sh @@ -24,7 +24,6 @@ function cmake_arm { -DWITH_TESTING=ON \ -DWITH_MKL=OFF \ -DWITH_MKLDNN=OFF - make cxx_api_lite_bin -j8 } function build { -- GitLab