allow Optimizers to inspect Models (currently unused)
the thing that takes advantage of this may or may not be committed, so this may or may not get reverted.
This commit is contained in:
parent
de5af4f7f4
commit
915b39d783
|
@ -1039,7 +1039,9 @@ class Ritual: # i'm just making up names at this point.
|
|||
return predicted
|
||||
|
||||
def update(self):
|
||||
self.learner.optim.update(self.model.dW, self.model.W)
|
||||
optim = self.learner.optim
|
||||
optim.model = self.model
|
||||
optim.update(self.model.dW, self.model.W)
|
||||
|
||||
def prepare(self, model):
|
||||
self.en = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user