提交 57ab4e94 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fix for __eq__ and __hash__ of EighGrad

上级 9c9f2166
......@@ -1020,7 +1020,7 @@ class EighGrad(Op):
self.tri1 = lambda a: numpy.tril(a, -1)
def props(self):
return ()
return (self.UPLO,)
def __hash__(self):
return hash((type(self), self.props()))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论