From 27150a06626542d49123df3f0350b5dbb33dc662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:25:05 +0800 Subject: [PATCH] fix building of xpu operators, test=develop (#4332) --- lite/operators/__xpu__conv2d_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/operators/__xpu__conv2d_op.cc b/lite/operators/__xpu__conv2d_op.cc index 8c3330f9e3..61d6177f96 100644 --- a/lite/operators/__xpu__conv2d_op.cc +++ b/lite/operators/__xpu__conv2d_op.cc @@ -133,7 +133,7 @@ bool XPUConv2dOp::AttachImpl(const cpp::OpDesc& op_desc, lite::Scope* scope) { scope->FindVar(op_desc.Output("OutputMax").front())->GetMutable(); param_.strides = op_desc.GetAttr>("strides"); - auto paddings = op_desc.GetAttr>("paddings"); + std::vector paddings = op_desc.GetAttr>("paddings"); auto dilations = op_desc.GetAttr>("dilations"); param_.dilations = std::make_shared>(dilations); param_.groups = op_desc.GetAttr("groups"); -- GitLab