Signflipping Function
Details about the Signflipping attack method.
def signflipping(honest_vectors):
return torch.stack(honest_vectors).mean(dim=0).mul(-1)
Inputs
honest_vectors: list - List of honest vectors for processing.
Outputs
torch.Tensor - The processed Tensor after applying the Signflipping attack.