Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChunmingHe/WS-SAM
/ reset
Method
reset
utils/utils.py:66–71 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
64
self.reset()
65
66
def
reset(self):
67
self.val = 0
68
self.avg = 0
69
self.sum = 0
70
self.count = 0
71
self.losses = []
72
73
def
update(self, val, n=1):
74
self.val = val
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected