captum
captum copied to clipboard
Add support for tuples of layers (instead of strictly list) in LayerLRP
It seems to me there is no reason why LayerLRP is restricted to lists only. It seems any ordered iterable should do the trick here.
- Add checks for tuples instead of just lists of layers in LayerLRP
- Add new type for hinting / documentation -> ModuleOrModuleListOrModuleTuple
Edit: Reference issue #1329