diff --git a/paddle/operators/detection_output_op.h b/paddle/operators/detection_output_op.h index 508e3d6939b81127b79b1106dc8c01c96ba891da..74a609d0a421ae86cbe591b4eaca421bfb3f143f 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) {