You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Summary:** This commit deprecates the following variables:
```
# Always True
TORCH_VERSION_AT_LEAST_2_6
TORCH_VERSION_AT_LEAST_2_5
TORCH_VERSION_AT_LEAST_2_4
TORCH_VERSION_AT_LEAST_2_3
TORCH_VERSION_AT_LEAST_2_2
# TORCH_VERSION_AFTER* was confusing to users
TORCH_VERSION_AFTER_2_5
TORCH_VERSION_AFTER_2_4
TORCH_VERSION_AFTER_2_3
TORCH_VERSION_AFTER_2_2
```
As of this commit, the latest released version of PyTorch is 2.8,
which means the oldest pytorch version we support is now 2.6
since we only support 3 of the latest releases.
The next commit will remove usages of all of these variables
from within torchao.
**Test Plan:**
```
python test/test_utils.py -k torch_version_deprecation
```
ghstack-source-id: 2bb4119
Pull Request resolved: #2719
0 commit comments