diff --git a/lite/kernels/arm/distribute_fpn_proposals_compute.cc b/lite/kernels/arm/distribute_fpn_proposals_compute.cc index 0871a3e84b42c8bcabbad53a8e98dc1d220714fb..3621c01a3018db9fa817d6a94c61e7e3373a81e4 100644 --- a/lite/kernels/arm/distribute_fpn_proposals_compute.cc +++ b/lite/kernels/arm/distribute_fpn_proposals_compute.cc @@ -71,9 +71,9 @@ void DistributeFpnProposalsCompute::Run() { for (int j = 0; j < fpn_rois_slice.dims()[0]; ++j) { // get the target level of current rois float roi_scale = std::sqrt(BBoxArea(rois_data, false)); - int tgt_lvl = std::floor( - std::log2(roi_scale / refer_scale + static_cast(1e-6)) + - refer_level); + int tgt_lvl = + std::floor(log2(roi_scale / refer_scale + static_cast(1e-6)) + + refer_level); tgt_lvl = std::min(max_level, std::max(tgt_lvl, min_level)); target_level.push_back(tgt_lvl); num_rois_level[tgt_lvl - min_level]++;