From c65d2fc356d1626ffcd1c64e2ab0729ec0bf89c8 Mon Sep 17 00:00:00 2001 From: sweetsky0901 Date: Mon, 11 Dec 2017 23:17:33 +0800 Subject: [PATCH] add inline --- paddle/operators/detection_output_op.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/operators/detection_output_op.h b/paddle/operators/detection_output_op.h index 508e3d6939..74a609d0a4 100644 --- a/paddle/operators/detection_output_op.h +++ b/paddle/operators/detection_output_op.h @@ -22,8 +22,9 @@ limitations under the License. */ namespace paddle { namespace operators { template -void transpose_fun(const platform::DeviceContext& context, - const framework::Tensor& src, framework::Tensor* dst) { +inline void transpose_fun(const platform::DeviceContext& context, + const framework::Tensor& src, + framework::Tensor* dst) { int input_nums = src.dims()[0]; int offset = 0; for (int j = 0; j < input_nums; ++j) {