vision icon indicating copy to clipboard operation
vision copied to clipboard

Remove extraneous device conversions in raft

Open vbarrielle opened this issue 1 year ago • 3 comments

By default, these calls were allocating tensors on the CPU, to then convert to the device used in the rest of the model. It's faster to allocate them directly on the correct device.

I have measured these changes on my machine to reduce the runtime of the forward pass by 25%.

vbarrielle avatar Jun 21 '24 09:06 vbarrielle

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8500

Note: Links to docs will display an error until the docs builds have been completed.

:x: 3 New Failures, 12 Unrelated Failures

As of commit 0714fdb8c91e07e02e1c7caec976ec5a4d38d9f2 with merge base 3e60dbd590d1aef53e443d0d2dcb792a91afe481 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

pytorch-bot[bot] avatar Jun 21 '24 09:06 pytorch-bot[bot]

Hi @vbarrielle!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

facebook-github-bot avatar Jun 21 '24 09:06 facebook-github-bot

Thanks for the PR @vbarrielle . PR looks good. Please make sure to sign the CLA for us to be able to merge your contribution! Thank you

NicolasHug avatar Jul 25 '24 14:07 NicolasHug