提交 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):
dct['outtype'],
dct['inplace'],
dct['ndim_added']]
self.__dict__.update(dct)
else:
state = dct
self.state = state
fn, outtype, inplace, ndim_added = state
self.fn = fn
if isinstance(fn, string_types):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论