-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(//notebooks): Fix WORKSPACE template file to reflect new build sy…
…stem layout Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
- Loading branch information
1 parent
73d804b
commit c8ea9b7
Showing
3 changed files
with
72 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM nvcr.io/nvidia/pytorch:20.03-py3 | ||
|
||
RUN apt update && apt install curl gnupg | ||
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add - | ||
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list | ||
|
||
RUN apt update && apt install bazel-3.3.1 | ||
RUN ln -s /usr/bin/bazel-3.3.1 /usr/bin/bazel | ||
|
||
RUN pip install pillow==4.3.0 | ||
RUN pip install torch==1.5.1 | ||
RUN pip install torchvision==0.6.1 | ||
|
||
COPY . /workspace/TRTorch | ||
RUN rm /workspace/TRTorch/WORKSPACE | ||
COPY ./notebooks/WORKSPACE.notebook /workspace/TRTorch/WORKSPACE | ||
|
||
WORKDIR /workspace/TRTorch | ||
RUN bazel build //:libtrtorch --compilation_mode opt | ||
|
||
WORKDIR /workspace/TRTorch/py | ||
RUN python3 setup.py install | ||
|
||
WORKDIR /workspace/TRTorch/notebooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters