PWWSRen2019 attack run much time
I run PSOZang2020 attack in my keras model. But it had run over 1 hours, and I not get any result.
PWWSRen2019 attack code:

CustomKerasModelWrapper Class :

my keras architecture of model :

Hi @Jiang010 -- thanks for trying TextAttack! PWWS is notoriously extremely slow because it uses an evolutionary algorithm that uses many random samples by default. Do you need to use PWWS? Otherwise I recommend something greedy like TextFooler or TextBugger or maybe DeepWordBug. (Granted, I have no idea what your usecase is-- I'm just talking about runtime here.)
Also, are you using a GPU?
sorry, @jxmorris12 I typing wrong. I have had edited my issue content. My problem is PSOZang2020 attack slowly run. PWWS attack is work for me. PWWS can get good attack result and normally run. In my project, I need as best as use all attack of TextAttack. Currently , only the PWWS can perform normally. BAEGarg2019 not also work.
I am very sure that environment can use GPU. But GPU seem not work well. my environment: ---tensorflow 2.6 ---pytorch 1.12.1 ---NVIDIA GPU 3060


Ah yes, well I was getting the two mixed up too. PSO is extremely slow. I don't think BAE should be that slow. You could try doing some benchmarking to figure out exactly what's slowing the attack down.
Hi @jxmorris12 , I might had found my problem. My input data of model are much large (1,4406). So, it make the attack run extremely slow. Thank you for answer my question.
thank you!!