You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run the code "python classification_attack.py --dataset_path data/mr --target_model bert --counter_fitting_cos_sim_path mat.txt --target_dataset mr --target_model_path BERT/mr --USE_cache_path " " --max_seq_length 256 --sim_score_window 40 --nclasses 2
", the ERROR comes out. It seems that tensorflow has changed. Could you please teach me how to replace this function? Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hi @JimmyChan-cyber, As the code is quite old, i suggest you to try running the attack from the TextAttack repository.
I have a fork with the hard label attack added here. The instructions to run are here. Let me know if you face any issues!
When i run the code "python classification_attack.py --dataset_path data/mr --target_model bert --counter_fitting_cos_sim_path mat.txt --target_dataset mr --target_model_path BERT/mr --USE_cache_path " " --max_seq_length 256 --sim_score_window 40 --nclasses 2
", the ERROR comes out. It seems that tensorflow has changed. Could you please teach me how to replace this function? Thanks a lot.
The text was updated successfully, but these errors were encountered: