未验证 提交 07c7926f 编写于 作者: L Leo Chen 提交者: GitHub

fix bug in op_desc (#52396)

上级 3996f0de
...@@ -765,8 +765,7 @@ void OpDesc::SetAttr(const std::string &name, const Attribute &v) { ...@@ -765,8 +765,7 @@ void OpDesc::SetAttr(const std::string &name, const Attribute &v) {
attrs_ptr->operator[](name) = v; attrs_ptr->operator[](name) = v;
VLOG(10) << "op_type: " << Type() << ", attr name: " << name VLOG(10) << "op_type: " << Type() << ", attr name: " << name
<< " , type index: " << " , type index: " << attrs_ptr->operator[](name).index();
<< TransToPhiDataType(this->attrs_[name].index());
need_update_ = true; need_update_ = true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册