提交 845ab744 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Added a comment about the change to the __hash__ function of scan.

上级 cd7589bf
...@@ -353,6 +353,9 @@ class Scan(Op): ...@@ -353,6 +353,9 @@ class Scan(Op):
def __hash__(self): def __hash__(self):
# any two objects that *might* compare equal must hash equal.
# so we don't check the self.inputs and self.outputs here and it's
# ok.
return ( hash(type(self)) ^ return ( hash(type(self)) ^
scan_utils.hash_listsDictsTuples(self.info) ) scan_utils.hash_listsDictsTuples(self.info) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论