-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[functorch] Add some more view+inplace grad+vmap tests #83176
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
PyTorch autograd turns view+inplace into some sequence of as_strided and a special CopySlices node. This PR: - adds a test for that (`test_inplace_on_view`) - modifies some other testing that also tests this behavior (`test_inplace_view`, `test_inplace_manyview`) to also test non-contiguous inputs. Test Plan: - wait for tests [ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 0e233bc (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
PyTorch autograd turns view+inplace into some sequence of as_strided and a special CopySlices node. This PR: - adds a test for that (`test_inplace_on_view`) - modifies some other testing that also tests this behavior (`test_inplace_view`, `test_inplace_manyview`) to also test non-contiguous inputs. Test Plan: - wait for tests ghstack-source-id: 9fbc0c6 Pull Request resolved: #83176
|
@pytorchbot merge -f "flaky failures in middle of stack" |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @zou3519. |
Summary: PyTorch autograd turns view+inplace into some sequence of as_strided and a special CopySlices node. This PR: - adds a test for that (`test_inplace_on_view`) - modifies some other testing that also tests this behavior (`test_inplace_view`, `test_inplace_manyview`) to also test non-contiguous inputs. X-link: pytorch/pytorch#83176 Approved by: https://github.com/Chillee Reviewed By: seemethere Differential Revision: D38624204 Pulled By: zou3519 fbshipit-source-id: d88ad5085973a2b49bb0a8ac8ff11b9ba1dc0b49
Summary: PyTorch autograd turns view+inplace into some sequence of as_strided and a special CopySlices node. This PR: - adds a test for that (`test_inplace_on_view`) - modifies some other testing that also tests this behavior (`test_inplace_view`, `test_inplace_manyview`) to also test non-contiguous inputs. Pull Request resolved: #83176 Approved by: https://github.com/Chillee Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/fa54021a0c91258c781c5073b672cb542ea609b0 Test plan from GitHub: - wait for tests Reviewed By: seemethere Differential Revision: D38624204 Pulled By: zou3519 fbshipit-source-id: d88ad5085973a2b49bb0a8ac8ff11b9ba1dc0b49
Stack from ghstack:
PyTorch autograd turns view+inplace into some sequence of as_strided and
a special CopySlices node. This PR:
test_inplace_on_view)(
test_inplace_view,test_inplace_manyview) to also testnon-contiguous inputs.
Test Plan: