Skip to content

Commit e1ea3c0

Browse files
author
Anurag Dixit
committed
(//docker): Fixed dockerfiles
Signed-off-by: Anurag Dixit <[email protected]>
1 parent b9da987 commit e1ea3c0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,21 @@ FROM base as torch-tensorrt
3838

3939
# copy source repo
4040
COPY . /workspace/torch_tensorrt
41-
COPY --from=torch-tensorrt-builder /workspace/torch_tensorrt/src/dist/ .
41+
COPY --from=torch-tensorrt-builder /workspace/torch_tensorrt/src/py/dist/ .
4242
RUN patch -u /opt/conda/lib/python3.8/site-packages/pytorch_quantization/nn/modules/tensor_quantizer.py -i /workspace/torch_tensorrt/docker/qat.patch
4343
RUN conda init bash
4444

4545
RUN pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
4646
RUN jupyter nbextension enable --py widgetsnbextension
4747

48-
RUN pip3 install *.whl && rm -fr /workspace/torch_tensorrt/dist/* *.whl
48+
RUN pip3 install *.whl && rm -fr /workspace/torch_tensorrt/py/dist/* *.whl
4949

5050
ENV LD_LIBRARY_PATH /opt/conda/lib/python3.8/site-packages/torch/lib:/opt/conda/lib/python3.8/site-packages/torch_tensorrt/lib:${LD_LIBRARY_PATH}
5151
ENV PATH /opt/conda/lib/python3.8/site-packages/torch_tensorrt/bin:${PATH}
5252

5353
WORKDIR /workspace
5454
RUN mv /workspace/torch_tensorrt /opt/pytorch/torch_tensorrt
55+
RUN cp /opt/pytorch/torch_tensorrt/docker/WORKSPACE.docker /opt/pytorch/torch_tensorrt/WORKSPACE
5556
RUN mkdir torch_tensorrt
5657
RUN ln -s /opt/pytorch/torch_tensorrt/notebooks /workspace/torch_tensorrt/notebooks
5758

docker/dist-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ pip3 install timm --trusted-host pypi.org --trusted-host pypi.python.org --trust
55
cd tests/modules && python3 ./hub.py
66
cd ../..
77

8-
bazel test //tests:tests //tests:python_api_tests --compilation_mode=opt --jobs=4 --define=torchtrt_src=prebuilt
8+
bazel test //tests:tests //tests:python_api_tests --compilation_mode=opt --jobs=4 --define=torchtrt_src=pre_built
99

0 commit comments

Comments
 (0)