deepspeech2-pytorch-adversarial-attack
deepspeech2-pytorch-adversarial-attack copied to clipboard
can't set model.eval
When i run attack(), i need model.eval() and get loss to optime the adversarial example. However, it run error RuntimeError: cudnn RNN backward can only be called in training mode
. To solve this error, i add torch.backends.cudnn.enabled = False
at the beginning of the file. But i can't get a adversarial example.
thanks for your reply