From 1c00767731e2cf6d16abfd7b3c5002015fe5fd27 Mon Sep 17 00:00:00 2001 From: guosheng Date: Thu, 20 Jul 2017 15:21:45 +0800 Subject: [PATCH] fix ci bug on andriod building --- paddle/gserver/layers/ROIPoolLayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/gserver/layers/ROIPoolLayer.cpp b/paddle/gserver/layers/ROIPoolLayer.cpp index 04763fd152f..34ba9030f70 100644 --- a/paddle/gserver/layers/ROIPoolLayer.cpp +++ b/paddle/gserver/layers/ROIPoolLayer.cpp @@ -64,10 +64,10 @@ void ROIPoolLayer::forward(PassType passType) { for (size_t n = 0; n < numROIs; ++n) { size_t roiBatchIdx = bottomROIs[0]; - size_t roiStartW = std::round(bottomROIs[1] * spatialScale_); - size_t roiStartH = std::round(bottomROIs[2] * spatialScale_); - size_t roiEndW = std::round(bottomROIs[3] * spatialScale_); - size_t roiEndH = std::round(bottomROIs[4] * spatialScale_); + size_t roiStartW = round(bottomROIs[1] * spatialScale_); + size_t roiStartH = round(bottomROIs[2] * spatialScale_); + size_t roiEndW = round(bottomROIs[3] * spatialScale_); + size_t roiEndH = round(bottomROIs[4] * spatialScale_); CHECK_GE(roiBatchIdx, 0); CHECK_LT(roiBatchIdx, batchSize); size_t roiHeight = std::max(roiEndH - roiStartH + 1, uOne); -- GitLab