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

Method update

util/utils.py:478–481  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

476 ema_v.copy_(update_fn(ema_v, model_v))
477
478 def update(self, model):
479 self._update(model,
480 update_fn=lambda e, m: self.decay * e +
481 (1. - self.decay) * m)
482
483 def set(self, model):
484 self._update(model, update_fn=lambda e, m: m)

Callers 2

updateMethod · 0.45
summaryMethod · 0.45

Calls 1

_updateMethod · 0.95

Tested by

no test coverage detected