Skip to content
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

Fix gradcheck failing for OpInfo with TensorList inputs #53418

Closed

Conversation

heitorschueroff
Copy link
Contributor

@heitorschueroff heitorschueroff commented Mar 5, 2021

Stack from ghstack:

This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: D26860788

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 5, 2021

💊 CI failures summary and remediations

As of commit 770181a (more details on the Dr. CI page):


  • 2/2 failures introduced in this PR

🕵️ 2 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_build (1/2)

Step: "(Optional) Merge target branch" (full log | diagnosis details | 🔁 rerun)

Automatic merge failed; fix conflicts and then commit the result.
CONFLICT (add/add): Merge conflict in .jenkins/caffe2/build.sh
Auto-merging .jenkins/caffe2/build.sh
CONFLICT (add/add): Merge conflict in .jenkins/caffe2/bench.sh
Auto-merging .jenkins/caffe2/bench.sh
CONFLICT (add/add): Merge conflict in .circleci/verbatim-sources/job-specs/job-specs-custom.yml
Auto-merging .circleci/verbatim-sources/job-specs/job-specs-custom.yml
CONFLICT (add/add): Merge conflict in .circleci/scripts/python_doc_push_script.sh
Auto-merging .circleci/scripts/python_doc_push_script.sh
CONFLICT (add/add): Merge conflict in .circleci/config.yml
Auto-merging .circleci/config.yml
Automatic merge failed; fix conflicts and then commit the result.


Exited with code exit status 1

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_build (2/2)

Step: "(Optional) Merge target branch" (full log | diagnosis details | 🔁 rerun)

Automatic merge failed; fix conflicts and then commit the result.
CONFLICT (add/add): Merge conflict in .jenkins/caffe2/build.sh
Auto-merging .jenkins/caffe2/build.sh
CONFLICT (add/add): Merge conflict in .jenkins/caffe2/bench.sh
Auto-merging .jenkins/caffe2/bench.sh
CONFLICT (add/add): Merge conflict in .circleci/verbatim-sources/job-specs/job-specs-custom.yml
Auto-merging .circleci/verbatim-sources/job-specs/job-specs-custom.yml
CONFLICT (add/add): Merge conflict in .circleci/scripts/python_doc_push_script.sh
Auto-merging .circleci/scripts/python_doc_push_script.sh
CONFLICT (add/add): Merge conflict in .circleci/config.yml
Auto-merging .circleci/config.yml
Automatic merge failed; fix conflicts and then commit the result.


Exited with code exit status 1


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

[ghstack-poisoned]
This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

lgtm

test/test_ops.py Outdated Show resolved Hide resolved
This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #53418 (028f3bd) into gh/heitorschueroff/54/base (997f05c) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@                      Coverage Diff                       @@
##           gh/heitorschueroff/54/base   #53418      +/-   ##
==============================================================
+ Coverage                       77.36%   77.43%   +0.07%     
==============================================================
  Files                            1879     1869      -10     
  Lines                          183270   182394     -876     
==============================================================
- Hits                           141782   141242     -540     
+ Misses                          41488    41152     -336     

This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
@mruberry
Copy link
Collaborator

I really like this change and the design looks good. I've asked @IvanYashchuk to weigh in on removing the two OpInfo classes for linalg operations. Although this PR can replace them in the current build, I think he may have plans for them.

Looks like the test failures are just mypy issues.

@IvanYashchuk
Copy link
Collaborator

This PR resolves #50837.

This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
This PR adds a workaround to OpInfo tests for ops that take TensoList inputs which were failing gradcheck (see #51996). It also updates the *stack ops to pass in a list of Tensors as input to SampleInput to demonstrate that the tests now pass without the need for defining a lambda in op.

Differential Revision: [D26860788](https://our.internmc.facebook.com/intern/diff/D26860788)

[ghstack-poisoned]
@heitorschueroff
Copy link
Contributor Author

I split this PR into the following: #54914, #54922 and #54954. Closing this to move discussion there.

@facebook-github-bot facebook-github-bot deleted the gh/heitorschueroff/54/head branch April 29, 2021 14:17
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.

OpInfo tests fail gradcheck for ops with TensorList inputs.
5 participants