MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / update

Method update

SwissArmyTransformer/examples/mae/util/misc.py:91–98  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

89 self.delimiter = delimiter
90
91 def update(self, **kwargs):
92 for k, v in kwargs.items():
93 if v is None:
94 continue
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 15

__call__Method · 0.45
__init__Method · 0.45
forwardMethod · 0.45
url_openerFunction · 0.45
log_videoMethod · 0.45
url_openerFunction · 0.45
__init__Method · 0.45
forwardMethod · 0.45
__call__Method · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected