Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/semantic-segmentation
/ reset
Method
reset
utils/misc.py:490–494 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
488
self.reset()
489
490
def
reset(self):
491
self.val = 0
492
self.avg = 0
493
self.sum = 0
494
self.count = 0
495
496
def
update(self, val, n=1):
497
self.val = val
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected