Skip to content

Commit

Permalink
Merge pull request #7 from yazfield/master
Browse files Browse the repository at this point in the history
fix: keras self.inital_decay typo
  • Loading branch information
TimSalimans authored Mar 13, 2017
2 parents 2346cfd + 01a668f commit dff0cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/weightnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_updates(self, params, constraints, loss):
self.updates = []

lr = self.lr
if self.inital_decay > 0:
if self.initial_decay > 0:
lr *= (1. / (1. + self.decay * self.iterations))
self.updates .append(K.update_add(self.iterations, 1))

Expand Down Expand Up @@ -78,7 +78,7 @@ def get_updates(self, params, constraints, loss):
self.updates = [K.update_add(self.iterations, 1)]

lr = self.lr
if self.inital_decay > 0:
if self.initial_decay > 0:
lr *= (1. / (1. + self.decay * self.iterations))

t = self.iterations + 1
Expand Down

0 comments on commit dff0cd1

Please sign in to comment.