MCPcopy 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

valFunction · 0.95
trainFunction · 0.45
load_pth_hMethod · 0.45
__call__Method · 0.45
__setstate__Method · 0.45
__setstate__Method · 0.45
evaluateFunction · 0.45
main_metaFunction · 0.45
evaluateFunction · 0.45
start_procsFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected