albermax / innvestigate

A toolbox to iNNvestigate neural networks' predictions!
Other
1.25k stars 234 forks source link

Accessing intermediate layer analyzer output #234

Closed acv132 closed 3 years ago

acv132 commented 3 years ago

I would like to access the intermediate output of an LRP analysis of a model created with keras. Is there a function to do so?

adrhill commented 3 years ago

Yes, analyzers of type ReverseAnalyzerBase take an optional parameter reverse_keep_tensors=True, which will store all intermediate tensors on the backward pass.

Check out the docs for more details.