MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / update

Method update

utils.py:298–303  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

296 self.delimiter = delimiter
297
298 def update(self, **kwargs):
299 for k, v in kwargs.items():
300 if isinstance(v, torch.Tensor):
301 v = v.item()
302 assert isinstance(v, (float, int))
303 self.meters[k].update(v)
304
305 def __getattr__(self, attr):
306 if attr in self.meters:

Callers 5

train_one_epochFunction · 0.95
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

mainFunction · 0.36
mainFunction · 0.36