Skip to content

Building onnxruntime with TensorRT and PyTorch #7408

Answered by mkserge
mkserge asked this question in Other Q&A
Discussion options

You must be logged in to vote

Ok, I eventually found out why this was not working. Sorry for the trouble.

In case, somebody else runs into something similar, the issue was that in the first stage, the following script line

/bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh &&\

was overwriting the default Python installation from 3.8 to 3.7, thus generating a wheel that was not suitable for use in the second stage. I basically removed the script and did some parts manually in my docker image to get it fully working.

Here's the final Dockerfile that works.

FROM nvcr.io/nvidia/tensorrt:21.03-py3 as onnxruntime

ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
ARG ONNXRUNTIME_BRANCH=master

RUN -…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mkserge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant