Torchattacks is a PyTorch library that provides adversarial attacks to generate adversarial examples.