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

Explain can be called only within a DeepExplain context. #39

Open
linchundan88 opened this issue Mar 19, 2019 · 1 comment
Open

Explain can be called only within a DeepExplain context. #39

linchundan88 opened this issue Mar 19, 2019 · 1 comment

Comments

@linchundan88
Copy link

linchundan88 commented Mar 19, 2019

with DeepExplain(session=K.get_session()) as de:

I developed a RPC service which provide explanation service. Because any explain operation can only be executed within a DeepExplain context, and initialization process takes longer than generating saliency maps. I have to create another process which loads models and create a DeepExplain context, the main process communicate with it through queues. It makes the program a little complex.

Some other libraries do not need explicit execution context.

We can manually release resources.

@marcoancona
Copy link
Owner

Not sure I understand the question here. What takes time is the creation of a new graph with replaced gradients, not the context itself.

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