fix wrong data type, test=develop (#28203)

revert-27871-prv-conv-grad-opt
Double_V 5 years ago committed by GitHub
parent efe6e2840c
commit 2db77be423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,7 +62,7 @@ class XPUROIAlignOpKernel : public framework::OpKernel<T> {
} 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<int>(_rois_lod.size()); ++n) {
rois_lod[n] = _rois_lod[n];
}
PADDLE_ENFORCE_EQ(

Loading…
Cancel
Save