MCPcopy
hub / github.com/xiaolai-sqlai/mobilenetv3 / update

Method update

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

Source from the content-addressed store, hash-verified

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

Callers 4

train_one_epochFunction · 0.95
evaluateFunction · 0.95
__call__Method · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected