MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / update

Method update

accessory/util/misc.py:216–223  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

214 self.delimiter = delimiter
215
216 def update(self, **kwargs):
217 for k, v in kwargs.items():
218 if v is None:
219 continue
220 if isinstance(v, torch.Tensor):
221 v = v.item()
222 assert isinstance(v, (float, int))
223 self.meters[k].update(v)
224
225 def __getattr__(self, attr):
226 if attr in self.meters:

Callers 9

train_one_epochFunction · 0.95
train_one_epochFunction · 0.95
val_one_epochFunction · 0.95
run_inferFunction · 0.45
scoresFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected