def _deactivate_requires_grad(params: Iterable[Parameter]) -> None:
    """Deactivates the requires_grad flag for all parameters."""
    for param in params:
        param.requires_grad = False
Deactivates the requires_grad flag for all parameters.
lightly/models/_momentum.py