Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.py
File · 0.80
main
Function · 0.80
reinforce.py
File · 0.80
main
Function · 0.80
__init__
Method · 0.80
run_episode
Method · 0.80
__init__
Method · 0.80
run_episode
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected