MCPcopy Create free account
hub / github.com/Kitware/COAT / update

Method update

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

Source from the content-addressed store, hash-verified

91 self.delimiter = delimiter
92
93 def update(self, **kwargs):
94 for k, v in kwargs.items():
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
print_statisticsFunction · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected