MCPcopy Create free account
hub / github.com/MingchaoZhu/DeepLearning / update

Method update

code/chapter6.py:330–336  ·  view source on GitHub ↗

函数作用:梯度更新

(self)

Source from the content-addressed store, hash-verified

328 return out, dXs
329
330 def update(self):
331 """
332 函数作用:梯度更新
333 """
334 for k, v in reversed(list(self.layers.items())):
335 v.update()
336 self.flush_gradients()
337
338 def flush_gradients(self, curr_loss=None):
339 """

Callers 1

fitMethod · 0.95

Calls 1

flush_gradientsMethod · 0.95

Tested by

no test coverage detected