openfold.utils.exponential_moving_average¶
Classes
|
Maintains moving averages of parameters with exponential decay |
- class ExponentialMovingAverage(model, decay)¶
Maintains moving averages of parameters with exponential decay
At each step, the stored copy copy of each parameter param is updated as follows:
copy = decay * copy + (1 - decay) * param
where decay is an attribute of the ExponentialMovingAverage object.
- load_state_dict(state_dict)¶
- Parameters:
state_dict (OrderedDict)
- Return type:
None
- state_dict()¶
- Return type:
- to(device)¶