Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Thank you @phiresky for pointing these out. fixed.
  • Loading branch information
karpathy committed Apr 22, 2015
1 parent da9c2a9 commit 4ce9272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagernn/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Solver:
"""
def __init__(self):
self.step_cache_ = {} # might need this
self.step_cache_2 = {} # might need this
self.step_cache2_ = {} # might need this

def step(self, batch, model, cost_function, **kwargs):
"""
Expand All @@ -34,7 +34,7 @@ def step(self, batch, model, cost_function, **kwargs):
if not u in self.step_cache_:
self.step_cache_[u] = np.zeros(model[u].shape)
if solver == 'adadelta':
self.step_cache_2[u] = np.zeros(model[u].shape) # adadelta needs one more cache
self.step_cache2_[u] = np.zeros(model[u].shape) # adadelta needs one more cache

# compute cost and gradient
cg = cost_function(batch, model)
Expand Down

0 comments on commit 4ce9272

Please sign in to comment.