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

[Feature Request] Is there any way to use OpenVINO EP and TensorRT EP in the same environment? #18790

Open
jinluyang opened this issue Dec 12, 2023 · 2 comments
Labels
ep:OpenVINO issues related to OpenVINO execution provider ep:TensorRT issues related to TensorRT execution provider feature request request for unsupported feature or enhancement

Comments

@jinluyang
Copy link

jinluyang commented Dec 12, 2023

Describe the feature request

I'm using python, I know if I want to use TensorRT EP, I have to use onnxruntime-gpu. If I want to use OPENVINO I have to use onnxruntime-openvino. But These cannot be installed in the same docker container. They overlap each other. I want to use both while don't want to build from source.

Describe scenario use case

We use both CPU and GPU for inference of a model. And we want to use a single docker image.

@jinluyang jinluyang added the feature request request for unsupported feature or enhancement label Dec 12, 2023
@github-actions github-actions bot added ep:OpenVINO issues related to OpenVINO execution provider ep:TensorRT issues related to TensorRT execution provider labels Dec 12, 2023
@tianleiwu
Copy link
Contributor

tianleiwu commented Dec 14, 2023

Try two virtual python environments (like conda or venv).

@jywu-msft
Copy link
Member

jywu-msft commented Dec 18, 2023

sorry, currently you would need to build this configuration from source. we are investigating how to support dynamic loading of EP libraries. But this will take time as it requires implementing and migrating to new interfaces.
using multiple python environment as @tianleiwu suggested is a possible workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:OpenVINO issues related to OpenVINO execution provider ep:TensorRT issues related to TensorRT execution provider feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants