提交 a090f18c authored 作者: Hengjean's avatar Hengjean

Fix to extend and append eq

上级 4ba32765
......@@ -94,7 +94,7 @@ class Append(Op):
self.destroy_map = {0: [0]}
def __eq__(self, other):
return type(self) == type(other)
return type(self) == type(other) and self.inplace == other.inplace
def __hash__(self):
return hash(type(self)) ^ self.inplace
......@@ -128,7 +128,7 @@ class Extend(Op):
self.destroy_map = {0: [0]}
def __eq__(self, other):
return type(self) == type(other)
return type(self) == type(other) and self.inplace == other.inplace
def __hash__(self):
return hash(type(self)) ^ self.inplace
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论