Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAX attacks depend on experimental features that does not exist #1232

Open
rekino opened this issue Dec 27, 2022 · 0 comments
Open

JAX attacks depend on experimental features that does not exist #1232

rekino opened this issue Dec 27, 2022 · 0 comments

Comments

@rekino
Copy link
Contributor

rekino commented Dec 27, 2022

The issue tracker should only be used to report bugs or feature requests. If you are looking for support from other library users, please ask a question on StackOverflow.

Describe the bug
When I try to import the PGD attack from JAX module, I get the following error:
ModuleNotFoundError: No module named 'jax.experimental.stax'
The reason is that the FGSM implementation imports the logsoftmax function from the experimental package in
jax/attacks/fast_gradient_method.py

To Reproduce
Steps to reproduce the behavior:

  1. Open a google colab IPython notebook
  2. add the following code !pip install git+https://github.com/cleverhans-lab/cleverhans.git#egg=cleverhans to install cleverhans
  3. then try to import from cleverhans.jax.attacks.projected_gradient_descent import projected_gradient_descent
  4. execute and see the error

Expected behavior
the logsoftmax function should be imported from jax.nn package. Change the import to
from jax.nn import log_softmax as logsoftmax and the error would be gone.

Screenshots
If applicable, add screenshots to help explain your problem.

System configuration

  • Google colab's default
rekino added a commit to rekino/cleverhans that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant