IntelLabs / MART

Modular Adversarial Robustness Toolkit
BSD 3-Clause "New" or "Revised" License
16 stars 0 forks source link

Enable overriding of special args in `SequentialDict.forward` #175

Closed dxoigmn closed 1 year ago

dxoigmn commented 1 year ago

What does this PR do?

SequentialDict uses CallWith to manage how to call a underlying nn.Module and handle that nn.Module's output. All of this is handled at instantiation time. This PR adds the ability to override this functionality at execution time by adding those same special args to CallWith.forward.

Type of change

Please check all relevant options.

Testing

Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

Before submitting

Did you have fun?

Make sure you had fun coding 🙃

dxoigmn commented 1 year ago

robustbench tests still failing but this is ready for review @mzweilin