Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, model, eps=0.007): super(FGSM, self).__init__("FGSM", model) self.eps = eps
Torchattacks is a PyTorch library that provides adversarial attacks to generate adversarial examples.