提交 0b5ee2f1 authored 作者: Frederic's avatar Frederic 提交者: Arnaud Bergeron

hash tuple instead of xor them

上级 1bc1c0fa
...@@ -287,7 +287,7 @@ class PycudaElemwiseSourceModuleMakeThunkOp(Op): ...@@ -287,7 +287,7 @@ class PycudaElemwiseSourceModuleMakeThunkOp(Op):
# As we have a dict in props, we need to implement __hash__ # As we have a dict in props, we need to implement __hash__
def __hash__(self): def __hash__(self):
return (hash(type(self)) ^ hash(self.scalar_op) ^ return hash(type(self), hash(self.scalar_op),
hash_from_dict(self.inplace_pattern)) hash_from_dict(self.inplace_pattern))
def __str__(self): def __str__(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论