From c324cdeff8cf31c22e31e9497abfb9ce25a3273d Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 21 Sep 2018 07:35:13 +0000 Subject: [PATCH] fix roi_perspective_transform_op.cc unused variable caused error on macos --- .../fluid/operators/detection/roi_perspective_transform_op.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/fluid/operators/detection/roi_perspective_transform_op.cc b/paddle/fluid/operators/detection/roi_perspective_transform_op.cc index b98190d40a2..4cc980b41b3 100644 --- a/paddle/fluid/operators/detection/roi_perspective_transform_op.cc +++ b/paddle/fluid/operators/detection/roi_perspective_transform_op.cc @@ -23,8 +23,6 @@ namespace operators { using Tensor = framework::Tensor; using LoDTensor = framework::LoDTensor; -static constexpr int kROISize = 4; - template bool GT_E(T a, T b) { return (a > b) || fabs(a - b) < 1e-4; -- GitLab