Fix: nDims is mutated inside the loop in Shape.cu#165446
Fix: nDims is mutated inside the loop in Shape.cu#165446alexsibir wants to merge 1 commit intopytorch:mainfrom
Conversation
|
This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @alexsibir, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team. |
|
|
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165446
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 32afe38 with merge base e6f766c ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@alexsibir has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84612194. |
|
Would it be possible to add a test for this? |
eff72cc to
f056944
Compare
Summary: Pull Request resolved: pytorch#165446 The `nDims` variable is mutated inside the loop but never restored to its original value. This affects subsequent iterations of the outer loop. Each batch iteration may get incorrect `nDims` after the first batch. Test Plan: CI Reviewed By: ngimel Differential Revision: D84612194
Summary: The `nDims` variable is mutated inside the loop but never restored to its original value. This affects subsequent iterations of the outer loop. Each batch iteration may get incorrect `nDims` after the first batch. Test Plan: CI Reviewed By: ngimel Differential Revision: D84612194
f056944 to
32afe38
Compare
|
@pytorchbot merge |
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 |
|
Note: by looks of it the PR shouldn't have changed the behavior,
|
Summary: The `nDims` variable is mutated inside the loop but never restored to its original value. This affects subsequent iterations of the outer loop. Each batch iteration may get incorrect `nDims` after the first batch. Test Plan: CI Reviewed By: ngimel Differential Revision: D84612194 Pull Request resolved: pytorch#165446 Approved by: https://github.com/ngimel
|
@pytorchbot cherry-pick --onto release/2.9 --fixes "fixes silent correctness bug" -c regression |
Cherry picking #165446Command Details for Dev Infra teamRaised by workflow job |
Summary:
The
nDimsvariable is mutated inside the loop but never restored to its original value.This affects subsequent iterations of the outer loop.
Each batch iteration may get incorrect
nDimsafter the first batch.Test Plan: CI
Reviewed By: ngimel
Differential Revision: D84612194