Skip to content

[1/N] Fix ruff warnings#164333

Closed
cyyever wants to merge 7 commits intopytorch:mainfrom
cyyever:ruff_checks2025
Closed

[1/N] Fix ruff warnings#164333
cyyever wants to merge 7 commits intopytorch:mainfrom
cyyever:ruff_checks2025

Conversation

@cyyever
Copy link
Collaborator

@cyyever cyyever commented Oct 1, 2025

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164333

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d64dadf with merge base 9ddfc59 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/inductor module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category labels Oct 1, 2025
@cyyever cyyever marked this pull request as draft October 1, 2025 04:55
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@cyyever cyyever marked this pull request as ready for review October 1, 2025 07:18
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx

@cyyever
Copy link
Collaborator Author

cyyever commented Oct 1, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 1, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@cyyever cyyever deleted the ruff_checks2025 branch October 2, 2025 00:02
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Fixes #ISSUE_NUMBER

Pull Request resolved: pytorch#164333
Approved by: https://github.com/albanD
pytorchmergebot pushed a commit that referenced this pull request Nov 19, 2025
Summary: Prior to #[164333](#164333), the 32-bit activation range was defined as `(int(-(2**31)), int(2**31 - 1))`. The `int` was deemed unnecessary, however torch.jit.script inteprets 2**31 as a float (example error P2044074770). Instead of reverting to the old definition (introduced by our team in #[150870](#150870), which could be "fixed" again), I replace with the value directly.

Test Plan: N8628317 demonstrates the error without this diff. No error on this diff.

Differential Revision: D87278420

Pull Request resolved: #168046
Approved by: https://github.com/cyyever, https://github.com/yangw-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants