MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / reset

Method reset

methods/model.py:336–339  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 print(name, self.grads[name].mean())
335
336 def reset(self):
337 self.counter.reset()
338 for name, grad in self.grads.items():
339 self.grads[name].fill_(0)
340
341# Maybe not necessary in image inputs
342class Shared_obs_stats():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected