auto_LiRPA icon indicating copy to clipboard operation
auto_LiRPA copied to clipboard

[Feature Request] Cleaner interface for intermediate layers

Open j29scott opened this issue 2 years ago • 4 comments

Would it be possible to get a cleaner interface for accessing bounds in intermediate layers? This is an extremely useful feature.

The ordered dictionary in _modules of a BoundedModule obtained from compute_bounds overwrites original names.

There is an .ori_name attribute, but its often missing. My solution is very hacky :stuck_out_tongue_winking_eye:

j29scott avatar Nov 09 '22 06:11 j29scott

Thanks for the suggestion. This is a problem on our list and we are currently working on it. We hope to get a better API for retrieving the intermediate layer bounds in the next release.

huanzhang12 avatar Nov 09 '22 06:11 huanzhang12

Hi, any update on this?

Would be nice before the competition :)

j29scott avatar Apr 26 '23 02:04 j29scott

bumping! :)

j29scott avatar Jun 11 '23 21:06 j29scott

Sorry, none of the people in the team is available for making this change in the short term. If you want to implement this, I am happy to review your pull request.

huanzhang12 avatar Jun 13 '23 22:06 huanzhang12