提交 a0f2ce63 authored 作者: Frederic's avatar Frederic

In some case, the ufunc field is not set. We still want to allow to pickle it.

上级 de08cbe1
......@@ -1081,7 +1081,7 @@ class CAReduce(Op):
def __getstate__(self):
d = copy(self.__dict__)
d.pop('ufunc')
d.pop('ufunc', None)
return d
def __setstate__(self, d):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论