Harry24k / adversarial-attacks-pytorch

PyTorch implementation of adversarial attacks [torchattacks].
https://adversarial-attacks-pytorch.readthedocs.io/en/latest/index.html
MIT License
1.79k stars 337 forks source link

[BUG] no function "set_training_mode" but "set_model_training_mode" instead #159

Closed skadiscarlet closed 8 months ago

skadiscarlet commented 11 months ago

✨ Short description of the bug [tl;dr]

no such function name "set_training_mode" in the base model "attack" (func). So some mistakes occure in the README.md() and the wrapper LGV().

💬 Detailed code and results

.

rikonaka commented 11 months ago

Hi @skadiscarlet , yes, that's mistakes, I will fix that.

skadiscarlet commented 11 months ago

Hi @skadiscarlet , yes, that's mistakes, I will fix that.

also method "set_return_type" dosen't exist in class Attack too. And the wrapper LGV use it ( set_return_type). In fact, there is nothing assign to self.return_type.

rikonaka commented 11 months ago

Hi @skadiscarlet , yes, that's mistakes, I will fix that.

also method "set_return_type" dosen't exist in class Attack too. And the wrapper LGV use it ( set_return_type). In fact, there is nothing assign to self.return_type.

Ok, I will fix that as soon as possible. 😜