Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UX-Decoder/Semantic-SAM
/ reset
Method
reset
utils/misc.py:49–53 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
47
self.reset()
48
49
def
reset(self):
50
self.val = 0
51
self.avg = 0
52
self.sum = 0
53
self.count = 0
54
55
def
update(self, val, n=1, decay=0):
56
self.val = val
Callers
2
__init__
Method · 0.95
test
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected