未验证 提交 27150a06 编写于 作者: 石晓伟 提交者: GitHub

fix building of xpu operators, test=develop (#4332)

上级 78a303c8
......@@ -133,7 +133,7 @@ bool XPUConv2dOp::AttachImpl(const cpp::OpDesc& op_desc, lite::Scope* scope) {
scope->FindVar(op_desc.Output("OutputMax").front())->GetMutable<Tensor>();
param_.strides = op_desc.GetAttr<std::vector<int>>("strides");
auto paddings = op_desc.GetAttr<std::vector<int>>("paddings");
std::vector<int> paddings = op_desc.GetAttr<std::vector<int>>("paddings");
auto dilations = op_desc.GetAttr<std::vector<int>>("dilations");
param_.dilations = std::make_shared<std::vector<int>>(dilations);
param_.groups = op_desc.GetAttr<int>("groups");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册