Repository navigation
fix(stubs): add torch.compile - #5373
Closed
mangeshraut712 wants to merge 1 commit into
Closed
mangeshraut712 wants to merge 1 commit into
mangeshraut712 wants to merge 1 commit into
Conversation
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D127484819. (Because this pull request was imported automatically, there will not be any future comments.) |
stroxler
approved these changes
Oct 26, 2026
stroxler
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Contributor
|
This pull request has been merged in 7875ac1. |
Contributor
Author
|
Hey — CodeSync landed this on main with me as the commit author (thanks). GitHub still shows the PR as closed not merged ( Could you mark CodeSync landings as merged on the GitHub side (or reopen + merge via GitHub) so external contributors get the PR merge credit? Same issue on #5365 #5373 #5367 #5369. |
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5354.
Issue #5354 result
torch.compileoverloads to the PyTorch shape stubs instead of importing it fromtorch.compiler. This keeps stubs compatible with PyTorch 2.0, which hastorch.compilebut notorch.compilernamespace.torch.compile(fn)and decorator use viatorch.compile()(fn).test_public_attributes.py.Validation
torch-public-attributespassed with PyTorch 2.0.1, wheretorch.compileis callable andtorch.compileris absent.# noqawarnings intest_norms.py.git diff --checkpassed.cargois not installed; it stopped during Rust formatting.Commit
b5993e84155299e393ebee4e58227a919b329063 fix(stubs): add torch.compileWorking tree is clean. No push or PR was made.