IntelLabs / MART

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

Add composable functions to Composer #228

Closed mzweilin closed 9 months ago

mzweilin commented 9 months ago

What does this PR do?

This PR adds functions to Composer so that we can compose a Composer with a sequence of Functions. One use case is that we can reuse the Mask and Additive functions to compose a MaskAdditive Composer.

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 🙃