Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Aug 10, 2022

Stack from ghstack:

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

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]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 10, 2022

🔗 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.

Click here to manually regenerate this comment.

zou3519 added a commit that referenced this pull request Aug 10, 2022
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
@zou3519 zou3519 requested review from Chillee and samdow August 10, 2022 16:16
@zou3519
Copy link
Contributor Author

zou3519 commented Aug 11, 2022

@pytorchbot merge -f "flaky failures in middle of stack"

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

Hey @zou3519.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit to pytorch/functorch that referenced this pull request Aug 11, 2022
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
facebook-github-bot pushed a commit that referenced this pull request Aug 11, 2022
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
@facebook-github-bot facebook-github-bot deleted the gh/zou3519/476/head branch August 14, 2022 14:18
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.

4 participants