MCPcopy
hub / github.com/microsoft/Cream / update

Method update

TinyViT/my_meter.py:35–39  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

33 self._avg = None
34
35 def update(self, val, n=1):
36 self._val = val
37 self._sum += val * n
38 self._count += n
39 self._avg = None
40
41 @property
42 def val(self):

Callers 12

save_logits_one_epochFunction · 0.95
check_logits_one_epochFunction · 0.95
validateFunction · 0.95
train_one_epochFunction · 0.95
validateFunction · 0.95
__call__Method · 0.45
tiny_vit_5m_224Function · 0.45
tiny_vit_11m_224Function · 0.45
tiny_vit_21m_224Function · 0.45
tiny_vit_21m_384Function · 0.45
tiny_vit_21m_512Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected