-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Memoize local_scalar_dense calls, refactor all memos #125623
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/125623
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 730446c with merge base b6bcd09 (): NEW FAILURE - The following job has failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Signed-off-by: Edward Z. Yang <ezyang@meta.com> ghstack-source-id: ca6670c2d311fde92eb6212bdb648479ad98880e Pull Request resolved: #125623
Signed-off-by: Edward Z. Yang <ezyang@meta.com> ghstack-source-id: 947182e9c757a82c4d8fa27314b65edeb6fb062d Pull Request resolved: #125623
torch/_subclasses/fake_tensor.py
Outdated
@@ -541,6 +557,8 @@ def __new__(cls, fake_mode, elem, device, constant=None, real_tensor=None): | |||
self.real_tensor = real_tensor # type: ignore[attr-defined] | |||
self._nonzero_memo = None # type: ignore[attr-defined] |
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.
Worth generalizing this ? @IvanKobzarev was also recently asking for .tolist()
memoization
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.
alright
Signed-off-by: Edward Z. Yang <ezyang@meta.com> ghstack-source-id: a51e72116a4338ef9e49c55ae0d3603a924e38f3 Pull Request resolved: #125623
@eellison here, have a descriptor |
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Rebase failed due to Command
Raised by https://github.com/pytorch/pytorch/actions/runs/8996177476 |
Signed-off-by: Edward Z. Yang <ezyang@meta.com> ghstack-source-id: ec67f0686506d37f38c13b0a0f9757f7331cfe00 Pull Request resolved: #125623
Merge startedYour 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 |
@pytorchbot merge -f "spurious rocm failures" |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@pytorchbot merge -m "Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignore signal |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot revert -m "Broke ROCM and CUDA inductor tests, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignore signal |
❌ 🤖 pytorchbot command failed:
Try |
Or may be it was done by #125829 |
@pytorchbot revert -m "Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041" -c ignoredsignal |
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit fcbf2b6. Reverted #125623 on behalf of https://github.com/malfet due to Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041 ([comment](#125623 (comment)))
@ezyang your PR has been successfully reverted. |
There's no way this possible could have caused the ROCm problems. I'm guessing they are having some server problem |
@pytorchbot merge -f "confirmed from hud that reverting this didn't fix anything" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…#125623)" This reverts commit fcbf2b6. Reverted pytorch#125623 on behalf of https://github.com/malfet due to Broke ROCM, see https://github.com/pytorch/pytorch/actions/runs/9026074378/job/24804583041 ([comment](pytorch#125623 (comment)))
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: pytorch#125623 Approved by: https://github.com/eellison
Stack from ghstack (oldest at bottom):
Signed-off-by: Edward Z. Yang ezyang@meta.com