def hard_update(local_model, target_model) ->None:
    """Hard updates model parameters.

    θ_target = θ_local

    Args:
        local_model (PyTorch model): Weights will be copied from.
        target_model (PyTorch model): Weights will be copied to.
    """
    for target_param, local_param in zip(target_model.parameters(),
        local_model.parameters()):
        target_param.data.copy_(local_param.data)
