提交 dc19c6f2 编写于 作者: M minqiyang

Fix attrs

test=release/1.4
上级 90ad06c2
...@@ -938,7 +938,7 @@ class Operator(object): ...@@ -938,7 +938,7 @@ class Operator(object):
self.iop = core.OpBase(type) self.iop = core.OpBase(type)
self.previous_ops = [] self.previous_ops = []
self.attrs = attrs self.attrs = attrs if attrs else {}
else: else:
self.block = block self.block = block
self.desc = desc self.desc = desc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册