Skip to content

Commit 5eb2f7a

Browse files
committed
fix compile warning in test_MKLDNN.cpp and ROIPoolLayer.cpp
1 parent 93c6e52 commit 5eb2f7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/gserver/layers/ROIPoolLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void ROIPoolLayer::forward(PassType passType) {
9898
size_t roiStartH = round(bottomROIs[2] * spatialScale_);
9999
size_t roiEndW = round(bottomROIs[3] * spatialScale_);
100100
size_t roiEndH = round(bottomROIs[4] * spatialScale_);
101-
CHECK_GE(roiBatchIdx, 0);
101+
CHECK_GE(roiBatchIdx, 0UL);
102102
CHECK_LT(roiBatchIdx, batchSize);
103103
size_t roiHeight = std::max(roiEndH - roiStartH + 1, 1UL);
104104
size_t roiWidth = std::max(roiEndW - roiStartW + 1, 1UL);

paddle/gserver/tests/test_MKLDNN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static void getAddtoConfig(TestConfig& cfg,
297297
}
298298

299299
void testAddtoLayer(const testImageDesc& pm, const size_t nInputs) {
300-
CHECK_GE(nInputs, 1);
300+
CHECK_GE(nInputs, 1UL);
301301
TestConfig dnnConfig;
302302
getAddtoConfig(dnnConfig, pm, nInputs);
303303
dnnConfig.layerConfig.set_type("mkldnn_addto");

0 commit comments

Comments
 (0)