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

NameError: name 'activation_visualization' is not defined #73

Open
hiSingh248 opened this issue Oct 12, 2018 · 3 comments
Open

NameError: name 'activation_visualization' is not defined #73

hiSingh248 opened this issue Oct 12, 2018 · 3 comments

Comments

@hiSingh248
Copy link

After successful installation of tf_cnnvis, I was able to import tf_cnnvis but running example 1 using python 3 in jupyter notebook throws the following error:
NameError: name 'activation_visualization' is not defined
I have followed the same steps as given in readMe file. Is there anything that needs to be done after installation to be able to use activation and deactivation functions?

@falaktheoptimist
Copy link
Member

Nope, not unless you have 2 python versions on your machine and you ran setup.py using python 2 and the jupyter notebook is trying to import using python3.

@hiSingh248
Copy link
Author

Thanks, @falaktheoptimist for the response. I have 2 python versions but I executed setup.py file using python 3 which is why I am able to import tf_cnnvis module. Since my Jupyter notebook kernel is also using python3 and I am still not able to use inbuilt functions, I am not able to figure out the issue.
Any suggestion will be helpful.

issue

@falaktheoptimist
Copy link
Member

If you were able to run the command from tf_cnnvis import * without any error and are still getting the error saying activation_visualization is not defined, then I'm not sure what could be the error here. Please post the error log here - maybe that would help with the debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants