MCPcopy Create free account
hub / github.com/pytorch/examples / reset

Method reset

imagenet/main.py:449–453  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 self.reset()
448
449 def reset(self):
450 self.val = 0
451 self.avg = 0
452 self.sum = 0
453 self.count = 0
454
455 def update(self, val, n=1):
456 self.val = val

Callers 9

__init__Method · 0.95
actor_critic.pyFile · 0.80
mainFunction · 0.80
reinforce.pyFile · 0.80
mainFunction · 0.80
__init__Method · 0.80
run_episodeMethod · 0.80
__init__Method · 0.80
run_episodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected