-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[BE] Enable ruff's UP rules and autoformat optim/ #105426
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/105426
Note: Links to docs will display an error until the docs builds have been completed. ✅ 1 Unrelated FailureAs of commit 7320a0c: UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
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.
profiler changes LGTM, please take a look at lint issues
for size1, size2 in zip(reversed(mdbs), reversed(cdbs)): | ||
if size1 != 1 and size2 != 1 and size1 != size2: | ||
raise ValueError("`mixture_distribution.batch_shape` ({0}) is not " | ||
raise ValueError("`mixture_distribution.batch_shape` ({}) is not " |
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.
why not use an fstring here?
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.
done
kc = self._component_distribution.batch_shape[-1] | ||
if km is not None and kc is not None and km != kc: | ||
raise ValueError("`mixture_distribution component` ({0}) does not" | ||
raise ValueError("`mixture_distribution component` ({}) does not" |
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.
same as above for the other ValueErrors in this file
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.
Done
[ghstack-poisoned]
[ghstack-poisoned]
ghstack-source-id: 3dcaa23 Pull Request resolved: pytorch#105426 Signed-off-by: Justin Chu <justinchu@microsoft.com>
@pytorchbot merge -f "rocm unstable" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):