Skip to content

Commit

Permalink
Added Trainer.set_learning_rate() clab#695 (clab#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalpinter authored and Kashif Rasul committed Jan 19, 2018
1 parent 91fd5b0 commit dd76c2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/_dynet.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5628,6 +5628,9 @@ cdef class Trainer:
@learning_rate.setter
def learning_rate(self, value):
self.thisptr.learning_rate = value

def set_learning_rate(self, value):
self.thisptr.learning_rate = value

cdef class SimpleSGDTrainer(Trainer):
"""Stochastic gradient descent trainer
Expand Down

0 comments on commit dd76c2b

Please sign in to comment.