提交 17cf3dc5 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Merge pull request #95 from nouiz/fix_lazycond

__hash__ should take only 1 argument.
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论