提交 305566ee 编写于 作者: H Helin Wang

fix parameters.append_gradient_machine

append_gradient_machine should append __gradient_machines__ in all conditions.
上级 4311bfed
......@@ -224,7 +224,8 @@ class Parameters(object):
except ValueError:
# If no such parameter in gradient machine, then don't copy
pass
self.__gradient_machines__.append(gradient_machine)
self.__gradient_machines__.append(gradient_machine)
def __get_parameter_in_gradient_machine__(gradient_machine, name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册