提交 94060c1e authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed bug in deserialization of elemwise.Prod

上级 2bb303f4
......@@ -1201,7 +1201,8 @@ class Prod(CAReduce):
self.no_zeros_in_input = no_zeros_in_input
def __setstate__(self, dct):
self.__dict__.update(dct)
super(Prod, self).__setstate__(dct)
# Add default value to be able to reload old pickled objects.
if 'no_zeros_in_input' not in dct:
self.no_zeros_in_input = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论