diff --git a/paddle/CMakeLists.txt b/paddle/CMakeLists.txt index 22e55d3b3b764294c479238b698d0193d1784a40..573bd937a351a6f308974e14f3bc92cbe1b541bc 100644 --- a/paddle/CMakeLists.txt +++ b/paddle/CMakeLists.txt @@ -18,8 +18,8 @@ add_subdirectory(strings) find_package(Boost QUIET) - if(Boost_FOUND) + include_directories(${Boost_INCLUDE_DIRS}) add_subdirectory(platform) add_subdirectory(framework) endif() diff --git a/paddle/function/NaiveConvOp.cpp b/paddle/function/NaiveConvOp.cpp index 70bd196a674993a00788ad7a6662b1c4f8a00e07..4348f0f775e9442c50a3c45b9a8e6dad5c6b198d 100644 --- a/paddle/function/NaiveConvOp.cpp +++ b/paddle/function/NaiveConvOp.cpp @@ -54,8 +54,8 @@ public: T inValue; const int inH = inStartH + fH; const int inW = inStartW + fW; - if ((inH >= 0 && inH < inputHeight) && - (inW >= 0 && inW < inputWidth)) { + if ((inH >= 0 && inH < (int)inputHeight) && + (inW >= 0 && inW < (int)inputWidth)) { size_t offsetInput = batch * inputChannels * inputHeight * inputWidth + inC * inputHeight * inputWidth + inH * inputWidth + inW;