From 2db77be42397296e032bbd92614b9ad5f571242a Mon Sep 17 00:00:00 2001 From: Double_V Date: Thu, 22 Oct 2020 14:57:11 +0800 Subject: [PATCH] fix wrong data type, test=develop (#28203) --- paddle/fluid/operators/roi_align_op_xpu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/roi_align_op_xpu.cc b/paddle/fluid/operators/roi_align_op_xpu.cc index 75bd94142e6..699cc7b84a4 100644 --- a/paddle/fluid/operators/roi_align_op_xpu.cc +++ b/paddle/fluid/operators/roi_align_op_xpu.cc @@ -62,7 +62,7 @@ class XPUROIAlignOpKernel : public framework::OpKernel { } else { auto _rois_lod = rois->lod().back(); rois_batch_size = _rois_lod.size() - 1; - for (int n = 0; n < _rois_lod.size(); ++n) { + for (int n = 0; n < static_cast(_rois_lod.size()); ++n) { rois_lod[n] = _rois_lod[n]; } PADDLE_ENFORCE_EQ( -- GitLab