Skip to content

Commit

Permalink
Added Trainer.set_learning_rate() #695 (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalpinter authored and neubig committed Jan 17, 2018
1 parent 1790a40 commit 0eeb191
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 @@ -5582,6 +5582,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 0eeb191

Please sign in to comment.