Skip to content

Remove duplicate descriptors#8321

Closed
bstriner wants to merge 1 commit intopytorch:masterfrom
bstriner:duplicate_descriptors
Closed

Remove duplicate descriptors#8321
bstriner wants to merge 1 commit intopytorch:masterfrom
bstriner:duplicate_descriptors

Conversation

@bstriner
Copy link
Copy Markdown
Contributor

This PR removes some duplication in recurrent_op_cudnn.cc. Instead of 4 of the same exact descriptor, should work fine with just 1. I don't see any other code that relies on those being 4 separate locations, but if that is what you need you can always allocate additional descriptors as necessary.

Have not fully tested this thing out, just something I noticed when I was reading through the descriptor code.

Cheers

@onnxbot onnxbot added the caffe2 label Jun 10, 2018
@bstriner
Copy link
Copy Markdown
Contributor Author

Looks like it is failing on an unrelated protobuf/onnx issue: #8313

@bstriner
Copy link
Copy Markdown
Contributor Author

@pytorchbot retest this please.

@bstriner
Copy link
Copy Markdown
Contributor Author

Failing on the below. CI needs rebasing:

22:23:47 AssertionError: "This[564 chars]5.0a0\n[conda] torch                     0.5.0[14 chars]pip>" != "This[564 chars]5.0a0)\n[conda] torch                     0.5.[15 chars]pip>"
22:23:47   This test will error out if the CI config was recently updated. If this is the case, please update the expect files to match the CI machines' system config.

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Jun 11, 2018

@pytorchbot retest this please

@bstriner
Copy link
Copy Markdown
Contributor Author

Thanks @ezyang ! I seem to be running into lots of random versioning issues today...

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
This PR removes some duplication in `recurrent_op_cudnn.cc`. Instead of 4 of the same exact descriptor, should work fine with just 1. I don't see any other code that relies on those being 4 separate locations, but if that is what you need you can always allocate additional descriptors as necessary.

Have not fully tested this thing out, just something I noticed when I was reading through the descriptor  code.

Cheers
Pull Request resolved: pytorch#8321

Differential Revision: D10363744

Pulled By: ezyang

fbshipit-source-id: 733c8242fb86866f1d64cfd79c54ee7bedb03b84
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