remove the eps from the sqrt

This commit is contained in:
George Hotz
2020-10-23 06:28:32 -07:00
parent 2259c9faa1
commit 0f358a9cfb

View File

@@ -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