Skip to content

fix anti-pattern for cudagraph #9081

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

Merged
merged 1 commit into from
May 22, 2025
Merged

fix anti-pattern for cudagraph #9081

merged 1 commit into from
May 22, 2025

Conversation

BoyuanFeng
Copy link
Contributor

Previously, self.set_cell_anchors(dtype, device) leads to cudagraph error "accessing tensor output of CUDAGraphs that has been overwritten by a subsequent run". This pr fixes the anti-pattern to enable cudagraph.

Copy link

pytorch-bot bot commented May 22, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9081

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

❌ 1 New Failure

As of commit 5a9709a with merge base 11ed64e (image):

NEW FAILURE - The following job has failed:

  • Lint / python-types / linux-job (gh)
    RuntimeError: Command docker exec -t 57ea20a41084667238b5ac0ff82d8e88b4dc79d2041bcaf226b99c4d18cd5f42 /exec failed with exit code 1

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

@BoyuanFeng
Copy link
Contributor Author

@pytorchbot merge -f "skip unrelated lint issue"

Copy link

pytorch-bot bot commented May 22, 2025

Mergebot is not configured for this repository. Please use the merge button provided by GitHub.

@BoyuanFeng BoyuanFeng merged commit 966da7e into main May 22, 2025
57 of 58 checks passed
Copy link

Hey @BoyuanFeng!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@NicolasHug
Copy link
Member

Hi folks,

Sorry but I have to revert this PR as it is BC-breaking. Happy to consider alternative fixes (ideally, with non-regression tests), but next time please do allow time for a maintainer's review.

NicolasHug added a commit to NicolasHug/vision that referenced this pull request May 29, 2025
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