MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / update

Method update

util/misc.py:311–318  ·  view source on GitHub ↗
(self, vars: dict, count: int = 1)

Source from the content-addressed store, hash-verified

309 self.ready = False
310
311 def update(self, vars: dict, count: int = 1) -> None:
312 assert isinstance(vars, dict)
313 for key, var in vars.items():
314 if key not in self.val_history:
315 self.val_history[key] = []
316 self.n_history[key] = []
317 self.val_history[key].append(var)
318 self.n_history[key].append(count)
319
320 def average(self, n: int = 0) -> None:
321 """Average latest n values or all values."""

Callers 15

train_one_epochFunction · 0.45
mainFunction · 0.45
infoMethod · 0.45
loss_keypointsMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
dn_post_process2Method · 0.45
forwardMethod · 0.45
build_aios_smplxFunction · 0.45
dn_post_process2Method · 0.45
forwardMethod · 0.45
build_aios_smplx_boxFunction · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected