Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/showlab/Show-o
/ reset
Method
reset
training/utils.py:166–170 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
164
self.reset()
165
166
def
reset(self):
167
self.val = 0
168
self.avg = 0
169
self.sum = 0
170
self.count = 0
171
172
def
update(self, val, n=1):
173
self.val = val
Callers
3
main
Function · 0.95
__init__
Method · 0.95
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected