提交 ea267924 authored 作者: Frederic Bastien's avatar Frederic Bastien

Add back the other attribute then the one from the Op.

上级 e063f64b
...@@ -145,10 +145,9 @@ class RandomFunction(gof.Op): ...@@ -145,10 +145,9 @@ class RandomFunction(gof.Op):
dct['outtype'], dct['outtype'],
dct['inplace'], dct['inplace'],
dct['ndim_added']] dct['ndim_added']]
self.__dict__.update(dct)
else: else:
state = dct state = dct
self.state = state
fn, outtype, inplace, ndim_added = state fn, outtype, inplace, ndim_added = state
self.fn = fn self.fn = fn
if isinstance(fn, string_types): if isinstance(fn, string_types):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论