I am trying to train a classifier on the CIFAR Dataset first and then use this trained model to generate adversarial examples.
After training, I want to freeze the weights and pass a new image to the model with a target label and then optimise the input such that the probability of the target class become maximum.