cleverhans-lab / cleverhans

An adversarial example library for constructing attacks, building defenses, and benchmarking both
MIT License
6.15k stars 1.39k forks source link

Tensorflow and Keras compatible versions for Cleverhans==3.1.0 #1244

Open tekeuange23 opened 6 months ago

tekeuange23 commented 6 months ago

Problem

Python==3.6.13 , Tensorflow==2.1.0 , Keras==2.2.0 `````` ERROR: AttributeError: module 'tensorflow' has no attribute 'GraphKeys' ``````
Python==3.11.5 , Tensorflow==2.13.0 , Keras==2.13.1 , cleverhans==4.0.0 `````` - impossible to use the jsma - can't: from cleverhans.attacks import fgsm , jsma - can't: from cleverhans.utils_tf import model_train , model_eval , batch_eval - can't: from cleverhans.attacks_tf import jacobian_graph - can't: from cleverhans.utils import other_classes ``````

Question

Which version of the following libraries goes perfectly with cleverhans==3.1.0

cc @goodfeli @carlini @npapernot