IntelLabs / MART

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

Move batch_c15n out of Adversary #220

Closed mzweilin closed 10 months ago

mzweilin commented 10 months ago

What does this PR do?

This PR moves batch_c15n out of Adversary to simplify the control flow.

Now we assume

  1. Adversary always receives canonical batches: adversary.fit(input, target, model=model), batch_adv = adversary(input, target).
  2. The target model takes canonical batches: outputs = model(input, target).

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 🙃