fix parameters.append_gradient_machine

append_gradient_machine should append __gradient_machines__ in all conditions.
avx_docs
Helin Wang 8 years ago
parent 4311bfedc2
commit 305566eed4

@ -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):

Loading…
Cancel
Save