提交 11a8dfe7 编写于 作者: D dangqingqing

Use Parameters.from_tar for static method.

上级 555540fc
...@@ -300,7 +300,7 @@ class Parameters(object): ...@@ -300,7 +300,7 @@ class Parameters(object):
return params return params
def init_from_tar(self, f): def init_from_tar(self, f):
tar_param = self.from_tar(f) tar_param = Parameters.from_tar(f)
for pname in tar_param.names(): for pname in tar_param.names():
if pname in self.names(): if pname in self.names():
self.set(pname, tar_param.get(pname)) self.set(pname, tar_param.get(pname))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册