MCPcopy
hub / github.com/whai362/PVT / update

Method update

classification/utils.py:85–90  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 6

train_one_epochFunction · 0.95
evaluateFunction · 0.95
mainFunction · 0.45
evaluate_and_showMethod · 0.45
save_checkpointFunction · 0.45
save_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36