torch_world.utils¶
ema_update
¶
target <- momentum * target + (1 - momentum) * online, parameter-wise.
recompute_batchnorm
¶
Re-estimate BatchNorm running statistics as exact averages of forward(x) over inputs.
Running averages lag behind features that move during training; call this before evaluating in eval mode.