MCPcopy Create free account
hub / github.com/LTH14/mar / update

Method update

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

Source from the content-addressed store, hash-verified

85 self.delimiter = delimiter
86
87 def update(self, **kwargs):
88 for k, v in kwargs.items():
89 if v is None:
90 continue
91 if isinstance(v, torch.Tensor):
92 v = v.item()
93 assert isinstance(v, (float, int))
94 self.meters[k].update(v)
95
96 def __getattr__(self, attr):
97 if attr in self.meters:

Callers 2

train_one_epochFunction · 0.95
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected