Skip to content

Use CUDA throughout the Windows TensorRT conversion example - #2933

Open
yushuosun wants to merge 1 commit into
open-mmlab:mainfrom
yushuosun:docs/windows-tensorrt-conversion-device
Open

yushuosun wants to merge 1 commit into
open-mmlab:mainfrom
yushuosun:docs/windows-tensorrt-conversion-device

Conversation

@yushuosun

Copy link
Copy Markdown

Motivation

The Windows TensorRT example uses device='cpu' for torch2onnx. The TensorRT deployment config reaches MMDeploy's backend-device check, which rejects CPU before export.

Fixes #2928.

Modification

Use one CUDA device setting for all three conversion steps in the English and Chinese examples.

Checklist

Ran both documented TensorRT conversion snippets with the repository's device parser and backend validation function and stubbed conversion calls. Before the change the guard rejected the ONNX export. After the change both TensorRT examples pass the guard and the ONNX Runtime examples still use CPU. No TensorRT engine was built.

Copilot AI balanced review requested due to automatic review settings November 28, 2026 11:10
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] https://github.com/open-mmlab/mmdeploy/blob/main/docs/zh_cn/02-how-to-run/prebuilt_package_windows.md

3 participants