Skip to content

Commit ce77963

Browse files
authored
Merge pull request #133 from NVIDIA/notebooks
Add LeNet demo notebook (Rebase)
2 parents 842a567 + 9bf8a7c commit ce77963

File tree

4 files changed

+760
-0
lines changed

4 files changed

+760
-0
lines changed

Dockerfile.notebook

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM nvcr.io/nvidia/pytorch:20.03-py3
2+
3+
RUN apt update && apt install curl gnupg
4+
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
5+
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
6+
7+
RUN apt update && apt install bazel-3.2.0
8+
RUN ln -s /usr/bin/bazel-3.2.0 /usr/bin/bazel
9+
10+
RUN pip install torch==1.5.0
11+
12+
COPY . /workspace/TRTorch
13+
COPY ./notebooks/WORKSPACE.notebook /workspace/TRTorch/WORKSPACE
14+
15+
WORKDIR /workspace/TRTorch
16+
RUN bazel build //:libtrtorch --compilation_mode opt
17+
18+
WORKDIR /workspace/TRTorch/py
19+
RUN python3 setup.py install
20+
21+
WORKDIR /workspace/TRTorch/notebooks

0 commit comments

Comments
 (0)