Skip to content

Commit 7c68a20

Browse files
committed
support TensorRT
1 parent 553699e commit 7c68a20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python-tensorflow/Dockerfile.2.3-py36-cuda11

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ ENV WHL_DIR=/tmp/pip3
9090
COPY .bazelrc /root/.mkl.bazelrc
9191
RUN echo "import /root/.mkl.bazelrc" >>/root/.bazelrc
9292

93+
ENV TF_NEED_TENSORRT=1
9394
ENV TF_CUDA_COMPUTE_CAPABILITIES sm_35,sm_37,sm_52,sm_60,sm_61,sm_70,sm_75,compute_70,compute_75,compute_80
9495

95-
#ENV TF_NEED_TENSORRT=1
96-
#ENV TENSORRT_INSTALL_PATH=/usr/local/tensorrt
9796
RUN tensorflow/tools/ci_build/builds/configured GPU \
9897
bazel --bazelrc=/root/.bazelrc build \
9998
-c opt \
@@ -143,7 +142,6 @@ RUN python3 -m pip install --no-cache-dir \
143142
nni==1.6 \
144143
scikit-nni==0.2.1
145144

146-
147145
RUN python3 -m pip install --no-cache-dir --extra-index-url \
148146
https://developer.download.nvidia.com/compute/redist \
149147
nvidia-dali-cuda110

0 commit comments

Comments
 (0)