From 9742c6061b66c4d0164247e0e2cef2fb4daebd06 Mon Sep 17 00:00:00 2001 From: Misha Chornyi Date: Wed, 31 Jan 2024 16:30:03 -0800 Subject: [PATCH] ORT 1.17.0 has dropped header dependency --- tools/gen_ort_dockerfile.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/gen_ort_dockerfile.py b/tools/gen_ort_dockerfile.py index 215f2c1..66d3bd6 100755 --- a/tools/gen_ort_dockerfile.py +++ b/tools/gen_ort_dockerfile.py @@ -296,9 +296,7 @@ def dockerfile_for_linux(output_file): if FLAGS.ort_tensorrt: df += """ # TensorRT specific headers and libraries -RUN cp /workspace/onnxruntime/include/onnxruntime/core/providers/tensorrt/tensorrt_provider_factory.h \ - /opt/onnxruntime/include && \ - cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_tensorrt.so \ +RUN cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_tensorrt.so \ /opt/onnxruntime/lib """ @@ -468,9 +466,6 @@ def dockerfile_for_windows(output_file): if FLAGS.ort_tensorrt: df += """ # TensorRT specific headers and libraries -WORKDIR /opt/onnxruntime/include -RUN copy \\workspace\\onnxruntime\\include\\onnxruntime\\core\\providers\\tensorrt\\tensorrt_provider_factory.h \\opt\\onnxruntime\\include - WORKDIR /opt/onnxruntime/lib RUN copy \\workspace\\build\\Release\\Release\\onnxruntime_providers_tensorrt.dll \\opt\\onnxruntime\\bin