提交 9d389600 authored 作者: Frederic's avatar Frederic

__hash__ should take only 1 argument.

上级 50ec86da
......@@ -77,7 +77,7 @@ class IfElse(PureOp):
self.gpu == other.gpu and
self.name == other.name)
def __hash__(self, other):
def __hash__(self):
return (hash(type(self)) ^
# view_map included in as_view
# and dict are not hashable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论