提交 fe0d29ed authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix error in previous commit

上级 d0fe50f0
...@@ -1647,7 +1647,7 @@ class CAReduceDtype(CAReduce): ...@@ -1647,7 +1647,7 @@ class CAReduceDtype(CAReduce):
return CAReduce.__hash__(self) ^ hash((self.dtype, self.acc_dtype)) return CAReduce.__hash__(self) ^ hash((self.dtype, self.acc_dtype))
def __setstate__(self, d): def __setstate__(self, d):
super(CAReduceDtype, self).__setstate__(self, d) super(CAReduceDtype, self).__setstate__(d)
if not hasattr(self, "dtype"): if not hasattr(self, "dtype"):
# This is needed as old pickled will crash otherwise. # This is needed as old pickled will crash otherwise.
# We need to keep the old dtype behavior as the op # We need to keep the old dtype behavior as the op
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论