-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make version check equal to or more than instead of more than #485
Conversation
```python import torch torch.__version__ # prints 2.3.0 from torchao.utils import torch_version_at_least torch_version_at_least("2.3.0.dev) # was returning false for 2.3.0 ``` But after changes in this PR ```python torch_version_at_least("2.3.0.dev) # True torch_version_at_least("2.3.0") # True ```
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/485
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit fbb61fc with merge base ab4ec43 (): NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Looks like there's some weird caching issue where Github is running older code and failing EDIT: @kit1980 figured out I just needed to rebase |
Found some issues with the current
So I think changing it to The failing test in this PR is probably because people expect the old behavior? To make CI pass, probably some places you need to replace |
EDIT: This PR is causing a bunch of IMA issues on PyTorch 2.3 which is unexpected
This PR solves 2 issues
TORCH_VERSION_AFTER_2_3(2.3)
would return false for 2.3 and that's because we intended to say (see below for more detail) and adding .dev was obscuring the actual intentTORCH_VERSION_AFTER_X_X
toTORCH_VERSION_AT_LEAST_X_X,
But after changes in this PR
Also tested with 3.5