Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Mar 23, 2022

Stack from ghstack:

The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:

  • wait for tests

Differential Revision: D35186860

The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 23, 2022

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 342653f (more details on the Dr. CI page):


💚 💚 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 Mar 23, 2022
The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

ghstack-source-id: 903f52c
Pull Request resolved: #74646
@zou3519
Copy link
Contributor Author

zou3519 commented Mar 25, 2022

Pre-empting questions about runtime:

  • The total runtime of the new test is 2:37 (CPU and CUDA) (measured on my machine)
  • The total runtime of the new test on CPU-only is 1:02

I think this qualifies as "quick enough that the benefits outweigh the cost" but please feel free to disagree. If we're really pressed on capacity, this test only really needs to run in one CI environment configuration

The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Mar 25, 2022
The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

ghstack-source-id: ee6e420
Pull Request resolved: #74646
return
raise RuntimeError(
f"This operator is not CompositeImplicitAutograd compliant: the "
f"This operator is not Composite Compliant: the "
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name change because "CompositeImplicitAutograd" only applies to operators and many backward formulas are just regular c++ functions that consist of pytorch operations

@zou3519 zou3519 requested review from albanD and ezyang March 25, 2022 20:30

# CompositeCompliantTensor steals the "requires_grad"-ness.
if elem.requires_grad:
# Why clone? Because sometimes OpInfo shares inputs between tests...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bruh lol

The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Mar 28, 2022
The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan:
- wait for tests

ghstack-source-id: 9d2e1e0
Pull Request resolved: #74646
@zou3519
Copy link
Contributor Author

zou3519 commented Mar 28, 2022

@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Mar 28, 2022
Summary:
Pull Request resolved: #74646

The OpInfo-based test, given an operator and sample inputs,
checks all permutations of {inputs, grad_output} being either
{CompositeCompliantTensor, regular Tensor}, running them through a
forward pass and a backward pass.

Test Plan: - wait for tests

Reviewed By: albanD

Differential Revision: D35186860

Pulled By: zou3519

fbshipit-source-id: 8b2577dd6106c05db2ab583bbefd10545fdd8adf
@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.

@zou3519 zou3519 added the topic: not user facing topic category label Mar 29, 2022
@facebook-github-bot facebook-github-bot deleted the gh/zou3519/418/head branch April 1, 2022 14:17
pytorchmergebot pushed a commit that referenced this pull request Apr 19, 2022
Follow up to #74646.  Do not skip the entire TestCompositeCompliance test_backward for ROCm, only skip the the two unexpected successes.
Pull Request resolved: #75810
Approved by: https://github.com/zou3519
facebook-github-bot pushed a commit that referenced this pull request Apr 19, 2022
Summary:
Follow up to #74646.  Do not skip the entire TestCompositeCompliance test_backward for ROCm, only skip the the two unexpected successes.

Pull Request resolved: #75810
Approved by: https://github.com/zou3519

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/e587c8bc5782510c7e518c8db8663014ac5e063f

Reviewed By: seemethere

Differential Revision: D35751446

fbshipit-source-id: e5cae9bf19d46572cc360d9fb4cb87642e5960d3
malfet pushed a commit that referenced this pull request Apr 20, 2022
Follow up to #74646.  Do not skip the entire TestCompositeCompliance test_backward for ROCm, only skip the the two unexpected successes.
Pull Request resolved: #75810
Approved by: https://github.com/zou3519

(cherry picked from commit e587c8b)
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