File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,21 @@ FROM base as torch-tensorrt
38
38
39
39
# copy source repo
40
40
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/ .
42
42
RUN patch -u /opt/conda/lib/python3.8/site-packages/pytorch_quantization/nn/modules/tensor_quantizer.py -i /workspace/torch_tensorrt/docker/qat.patch
43
43
RUN conda init bash
44
44
45
45
RUN pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
46
46
RUN jupyter nbextension enable --py widgetsnbextension
47
47
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
49
49
50
50
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}
51
51
ENV PATH /opt/conda/lib/python3.8/site-packages/torch_tensorrt/bin:${PATH}
52
52
53
53
WORKDIR /workspace
54
54
RUN mv /workspace/torch_tensorrt /opt/pytorch/torch_tensorrt
55
+ RUN cp /opt/pytorch/torch_tensorrt/docker/WORKSPACE.docker /opt/pytorch/torch_tensorrt/WORKSPACE
55
56
RUN mkdir torch_tensorrt
56
57
RUN ln -s /opt/pytorch/torch_tensorrt/notebooks /workspace/torch_tensorrt/notebooks
57
58
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ pip3 install timm --trusted-host pypi.org --trusted-host pypi.python.org --trust
5
5
cd tests/modules && python3 ./hub.py
6
6
cd ../..
7
7
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
9
9
You can’t perform that action at this time.
0 commit comments