Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Research
/ update
Method
update
CV/PWCNet/AverageMeter.py:14–18 ·
view source on GitHub ↗
(self, val, n=1)
Source
from the content-addressed store, hash-verified
12
self.count = 0
13
14
def
update(self, val, n=1):
15
self.val = val
16
self.sum += val * n
17
self.count += n
18
self.avg = self.sum / self.count
Callers
13
val
Function · 0.95
train
Function · 0.45
load_pth_h
Method · 0.45
__call__
Method · 0.45
__setstate__
Method · 0.45
__setstate__
Method · 0.45
evaluate
Function · 0.45
main_meta
Function · 0.45
evaluate
Function · 0.45
start_procs
Function · 0.45
main
Function · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected