From d53d7fdb8d2067b7569770b524abf216a5148f64 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 8 May 2020 19:16:55 +0800 Subject: [PATCH] [BUG FIX][Compiling] Fix the issue that x86 lib can not compile successfully on MAC env --- lite/kernels/x86/sequence_reshape_compute.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lite/kernels/x86/sequence_reshape_compute.h b/lite/kernels/x86/sequence_reshape_compute.h index bc5a1b0a53..4d83510875 100644 --- a/lite/kernels/x86/sequence_reshape_compute.h +++ b/lite/kernels/x86/sequence_reshape_compute.h @@ -81,7 +81,7 @@ class SequenceReshapeFloatCompute auto& param = *param_.get_mutable(); auto* in = param.x; auto* out = param.output; - auto out_data = out->mutable_data(); + auto out_data = out->template mutable_data(); for (int i = 0; i < out->dims().production(); i++) { out_data[i] = 0; } @@ -109,9 +109,9 @@ class SequenceReshapeFloatCompute } } out->Resize(std::vector{in->numel() / out_width, out_width}); - auto* dst_ptr = out->mutable_data(); + auto* dst_ptr = out->template mutable_data(); auto size = in->numel() * sizeof(T); - std::memcpy(dst_ptr, in->data(), size); + std::memcpy(dst_ptr, in->template data(), size); } virtual ~SequenceReshapeFloatCompute() = default; -- GitLab