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

Add LRP support for nested Chains #90

Closed
4 tasks done
adrhill opened this issue Aug 12, 2022 · 0 comments · Fixed by #119
Closed
4 tasks done

Add LRP support for nested Chains #90

adrhill opened this issue Aug 12, 2022 · 0 comments · Fixed by #119
Labels

Comments

@adrhill
Copy link
Member

adrhill commented Aug 12, 2022

This will be the first step towards #10 by allowing nested model structures.

This requires the following changes:

  • new internal representation of rules, e.g. via LRPRulesChain / LRPRulesParallel [Edit: now called ChainTuple and ParallelTuple] to support graphs
  • treat chains the same way as layers by adding lrp!(Rₖ, r::AbstractLRPRule, c::Chain, aₖ, Rₖ₊₁), which can be called recursively. This will require a different approach to pre-allocating activations and relevances than the one currently used in the call to the analyzer.
  • Composite might require a refactoring
  • Update lrp/show.jl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant