Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HobbitLong/SupContrast
/ reset
Method
reset
util.py:23–27 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
21
self.reset()
22
23
def
reset(self):
24
self.val = 0
25
self.avg = 0
26
self.sum = 0
27
self.count = 0
28
29
def
update(self, val, n=1):
30
self.val = val
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected