MCPcopy Create free account
hub / github.com/csuhan/OneLLM / update

Method update

util/misc.py:106–113  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

104 self.delimiter = delimiter
105
106 def update(self, **kwargs):
107 for k, v in kwargs.items():
108 if v is None:
109 continue
110 if isinstance(v, torch.Tensor):
111 v = v.item()
112 assert isinstance(v, (float, int))
113 self.meters[k].update(v)
114
115 def __getattr__(self, attr):
116 if attr in self.meters:

Callers 3

train_one_epochFunction · 0.95
train_one_epochFunction · 0.95
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected