Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_epoch
Function · 0.95
_download_pretrained
Function · 0.45
loss_fn
Function · 0.45
naive_model_fn
Function · 0.45
evaluate
Function · 0.45
__call__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected