コード例 #1
0
 def __init__(self, lr=0.01):
     self.__dict__.update(locals())
     self.iterations = shared_scalar(0)
コード例 #2
0
 def __init__(self, lr=0.01, momentum=0., decay=0., nesterov=False):
     self.__dict__.update(locals())
     self.iterations = shared_scalar(0)