MCPcopy Create free account
hub / github.com/NVlabs/DiffPure / update_ema

Function update_ema

guided_diffusion/nn.py:63–73  ·  view source on GitHub ↗

Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the target parameter sequence. :param source_params: the source parameter sequence. :param rate: the EMA rate (closer to 1 means slower).

(target_params, source_params, rate=0.99)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_update_emaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected