IntelLabs / MART

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

Assume simple model interface in adversary #200

Closed mzweilin closed 1 year ago

mzweilin commented 1 year ago

What does this PR do?

This PR makes Adversary work with any model that output_dict = model(batch). LitModular and SequentialDict are not required any more.

This PR depends on #185

This PR is split into #210 and #215

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

Also, can you add why you made this change? Seems like a lot of changes for some unknown use case.

mzweilin commented 1 year ago

Can you make this PR more minimal? Lots going on here and I don't have the patience to review large PRs.

Okay. I have merged main into #185 to hide many changes that are already in main.

mzweilin commented 1 year ago

This PR is split into https://github.com/IntelLabs/MART/pull/210 and https://github.com/IntelLabs/MART/pull/215