提交 cd7589bf authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fixed a bug in the __hash__ function which should be less restrictive then

__eq__ ( namely if two things compare equal they need to have the same hash, but the reverse is not mandatory )
上级 ccdff864
...@@ -354,8 +354,6 @@ class Scan(Op): ...@@ -354,8 +354,6 @@ class Scan(Op):
def __hash__(self): def __hash__(self):
return ( hash(type(self)) ^ return ( hash(type(self)) ^
scan_utils.hash_listsDictsTuples(self.inputs) ^
scan_utils.hash_listsDictsTuples(self.outputs) ^
scan_utils.hash_listsDictsTuples(self.info) ) scan_utils.hash_listsDictsTuples(self.info) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论