MCPcopy
hub / github.com/fundamentalvision/Deformable-DETR / update

Method update

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

Source from the content-addressed store, hash-verified

197 self.delimiter = delimiter
198
199 def update(self, **kwargs):
200 for k, v in kwargs.items():
201 if isinstance(v, torch.Tensor):
202 v = v.item()
203 assert isinstance(v, (float, int))
204 self.meters[k].update(v)
205
206 def __getattr__(self, attr):
207 if attr in self.meters:

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected