MCPcopy Create free account
hub / github.com/PeizeSun/TransTrack / update

Method update

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

Source from the content-addressed store, hash-verified

187 self.delimiter = delimiter
188
189 def update(self, **kwargs):
190 for k, v in kwargs.items():
191 if isinstance(v, torch.Tensor):
192 v = v.item()
193 assert isinstance(v, (float, int))
194 self.meters[k].update(v)
195
196 def __getattr__(self, attr):
197 if attr in self.meters:

Callers 14

train_one_epochFunction · 0.95
train_one_epochFunction · 0.95
evaluateFunction · 0.95
mainFunction · 0.45
forwardMethod · 0.45
buildFunction · 0.45
forwardMethod · 0.45
buildFunction · 0.45
forwardMethod · 0.45
buildFunction · 0.45
forwardMethod · 0.45
buildFunction · 0.45

Calls

no outgoing calls

Tested by 4

forwardMethod · 0.36
buildFunction · 0.36
forwardMethod · 0.36
buildFunction · 0.36