def __init__(self, lr=0.01): self.__dict__.update(locals()) self.iterations = shared_scalar(0)
def __init__(self, lr=0.01, momentum=0., decay=0., nesterov=False): self.__dict__.update(locals()) self.iterations = shared_scalar(0)