From 5cf46e9072915794cc18ac1e3f7e6f0741fae304 Mon Sep 17 00:00:00 2001 From: GaoWei8 Date: Thu, 13 Feb 2020 07:08:43 +0000 Subject: [PATCH] reduce DDim copy test=develop --- lite/kernels/x86/reduce_op_function.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/kernels/x86/reduce_op_function.h b/lite/kernels/x86/reduce_op_function.h index adfe466843..05785bf009 100644 --- a/lite/kernels/x86/reduce_op_function.h +++ b/lite/kernels/x86/reduce_op_function.h @@ -65,7 +65,7 @@ void ReduceFunctor(const lite::Tensor& input, } else { auto te = strstr(typeid(Functor).name(), "SumFunctor"); if (D == 3 && R_D == 1 && te != NULL) { - lite::DDim input_dims = input.dims(); + const lite::DDim& input_dims = input.dims(); const T* input_data = input.data(); T* output_data = output->mutable_data(); for (int i = 0; i < input_dims[0]; i++) { -- GitLab