(self, loss)
| 105 | self.step() |
| 106 | |
| 107 | def call(self, loss): |
| 108 | for p, g in autograd.backward(loss): |
| 109 | if p.name is None: |
| 110 | p.name = id(p) |
| 111 | self.apply(p.name, p, g) |
| 112 | |
| 113 | def step(self): |
| 114 | """To increment the step counter and update the lr""" |