mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
remove the eps from the sqrt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user