You can use any of the existing torchvision models to generate adversarial attacks using gradient step or optimizer based techniques.
I put up an example up a little while back, https://github.com/rwightman/pytorch-nips2017-attack-example 43