IntelLabs / MART

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

Upgrade to PyTorch 2.0 #192

Closed mzweilin closed 1 year ago

mzweilin commented 1 year ago

What does this PR do?

Though the initial goal is to only upgrade PyTorch and torchvision, it's inevitable to upgrade lightning and torchmetrics, because the old lightning is not aware of the different API of LR scheduler in PyTorch 2.0, and the new lightning requires newer torchmetrics.

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 🙃