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

Method update

TinyCLIP/src/training/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 6

train_one_epochFunction · 0.95
_download_pretrainedFunction · 0.45
loss_fnFunction · 0.45
naive_model_fnFunction · 0.45
evaluateFunction · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected