MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / reset

Method reset

CV/PWCNet/AverageMeter.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6 self.reset()
7
8 def reset(self):
9 self.val = 0
10 self.avg = 0
11 self.sum = 0
12 self.count = 0
13
14 def update(self, val, n=1):
15 self.val = val

Callers 6

__init__Method · 0.95
trainFunction · 0.45
trainFunction · 0.45
trainMethod · 0.45
predMethod · 0.45
predMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected