Skip to content
Snippets Groups Projects
attack.py 91 B
Newer Older
mai's avatar
mai committed
import transformers

mai's avatar
mai committed
def attack(sentence, model, tokenizer):
    model = model.to(device)
mai's avatar
mai committed