IntelLabs / MART

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

Allow `LitModular.*_step_log` to be a dictionary #168

Closed dxoigmn closed 1 year ago

dxoigmn commented 1 year ago

What does this PR do?

LitModular.*_step_log currently takes a list of things to log. However, it is always better to consume a dict due to Hydra's limitation when composing lists. This PR changes LitModular to accept a dict. Because it now consumes a dict, this also enables users to rename values (instead of using ReturnKwargs to do this).

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 🙃