From a6f3846d8ff1b9a9d6361381447d1ab7cab7f7ec Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Fri, 2 Feb 2018 16:33:33 +0800 Subject: [PATCH] Remove the redundant header file and make one function inlne. --- paddle/operators/multiclass_nms_op.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/operators/multiclass_nms_op.cc b/paddle/operators/multiclass_nms_op.cc index cb38e9fa201..8a65fe69f15 100644 --- a/paddle/operators/multiclass_nms_op.cc +++ b/paddle/operators/multiclass_nms_op.cc @@ -13,7 +13,6 @@ See the License for the specific language governing permissions and limitations under the License. */ #include "paddle/framework/op_registry.h" -#include "paddle/operators/math/math_function.h" namespace paddle { namespace operators { @@ -92,7 +91,7 @@ static inline void GetMaxScoreIndex( } template -T BBoxArea(const T* box, const bool normalized) { +static inline T BBoxArea(const T* box, const bool normalized) { if (box[2] < box[0] || box[3] < box[1]) { // If coordinate values are is invalid // (e.g. xmax < xmin or ymax < ymin), return 0. -- GitLab