mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
remove the eps from the sqrt
This commit is contained in:
parent
2259c9faa1
commit
0f358a9cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -48,4 +48,4 @@ class RMSprop(Optimizer):
|
|||
def step(self):
|
||||
for i, t in enumerate(self.params):
|
||||
self.v[i] = self.decay * self.v[i] + (1 - self.decay) * np.square(t.grad)
|
||||
t.data -= (self.lr / np.sqrt(self.v[i] + self.eps)) * t.grad
|
||||
t.data -= (self.lr / (np.sqrt(self.v[i]) + self.eps)) * t.grad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue