MCPcopy
hub / github.com/microsoft/Cream / update

Method update

EfficientViT/classification/utils.py:83–88  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 8

train_one_epochFunction · 0.95
evaluateFunction · 0.95
mainFunction · 0.45
get_torchvision_modelsFunction · 0.45
get_external_modelsFunction · 0.45
save_checkpointFunction · 0.45
save_checkpointFunction · 0.45
save_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36