提交 13666ae7 编写于 作者: W wangguibao

Fix build issue with GCC8.2

上级 a1837886
...@@ -14,15 +14,7 @@ ...@@ -14,15 +14,7 @@
#pragma once #pragma once
#include <vector> #include <vector>
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
#include "demo-serving/image_class.pb.h" #include "demo-serving/image_class.pb.h"
namespace baidu { namespace baidu {
......
...@@ -14,15 +14,7 @@ ...@@ -14,15 +14,7 @@
#pragma once #pragma once
#include <vector> #include <vector>
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
#include "demo-serving/ctr_prediction.pb.h" #include "demo-serving/ctr_prediction.pb.h"
namespace baidu { namespace baidu {
......
...@@ -27,16 +27,7 @@ ...@@ -27,16 +27,7 @@
#include "opencv/cv.hpp" #include "opencv/cv.hpp"
#include "opencv/cxcore.h" #include "opencv/cxcore.h"
#include "opencv/highgui.h" #include "opencv/highgui.h"
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
namespace baidu { namespace baidu {
namespace paddle_serving { namespace paddle_serving {
......
...@@ -14,15 +14,7 @@ ...@@ -14,15 +14,7 @@
#pragma once #pragma once
#include <vector> #include <vector>
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
#include "demo-serving/text_classification.pb.h" #include "demo-serving/text_classification.pb.h"
namespace baidu { namespace baidu {
......
...@@ -21,15 +21,7 @@ ...@@ -21,15 +21,7 @@
#include <vector> #include <vector>
#include "configure/include/configure_parser.h" #include "configure/include/configure_parser.h"
#include "configure/inferencer_configure.pb.h" #include "configure/inferencer_configure.pb.h"
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
#include "predictor/framework/infer.h" #include "predictor/framework/infer.h"
namespace baidu { namespace baidu {
......
...@@ -23,15 +23,7 @@ ...@@ -23,15 +23,7 @@
#include <vector> #include <vector>
#include "configure/include/configure_parser.h" #include "configure/include/configure_parser.h"
#include "configure/inferencer_configure.pb.h" #include "configure/inferencer_configure.pb.h"
#ifdef BCLOUD
#ifdef WITH_GPU
#include "paddle/paddle_inference_api.h"
#else
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#endif
#else
#include "paddle_inference_api.h" // NOLINT #include "paddle_inference_api.h" // NOLINT
#endif
#include "predictor/framework/infer.h" #include "predictor/framework/infer.h"
DECLARE_int32(gpuid); DECLARE_int32(gpuid);
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <functional>
class AbstractKVDB; class AbstractKVDB;
class FileReader; class FileReader;
class ParamDict; class ParamDict;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册