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

ImportError: cannot import name 'LayerIntegratedGradients' #231

Closed
rgib37190 opened this issue Jan 11, 2020 · 5 comments
Closed

ImportError: cannot import name 'LayerIntegratedGradients' #231

rgib37190 opened this issue Jan 11, 2020 · 5 comments

Comments

@rgib37190
Copy link

rgib37190 commented Jan 11, 2020

`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
13
14 from captum.attr import visualization as viz
---> 15 from captum.attr import IntegratedGradients, LayerConductance, LayerIntegratedGradients
16 from captum.attr import configure_interpretable_embedding_layer, remove_interpretable_embedding_layer

ImportError: cannot import name 'LayerIntegratedGradients'`

@NarineK
Copy link
Contributor

NarineK commented Jan 12, 2020

Hi @rgib37190 ! We added LayerIntegratedGradients recently. Do you have the latest version of captum library ?

@rgib37190
Copy link
Author

Hi @rgib37190 ! We added LayerIntegratedGradients recently. Do you have the latest version of captum library ?

I use pip install captum yesterday. I don't know whether my version is lastest.

@NarineK
Copy link
Contributor

NarineK commented Jan 12, 2020

@rgib37190, we haven't released a new version yet, I think it would be good to follow the instructions under Manual / Dev Install. Let us know how it goes.
https://github.com/pytorch/captum

@rgib37190
Copy link
Author

@rgib37190, we haven't released a new version yet, I think it would be good to follow the instructions under Manual / Dev Install. Let us know how it goes.
https://github.com/pytorch/captum

Ok !!! Thanks.

@NarineK
Copy link
Contributor

NarineK commented Jan 14, 2020

@rgib37190 ! Feel free to close the issue if it fixed the problem! Thank you!

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

2 participants