File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel
2+
3+ RUN apt-get update && \
4+ apt-get install -y libxrender1 && \
5+ rm -rf /var/lib/apt/lists/*
6+
7+ RUN pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.1+cu111.html && \
8+ pip install torchdrug
Original file line number Diff line number Diff line change 1+ Docker
2+ ======
3+
4+ Run a Container
5+ ---------------
6+
7+ We prepare a pre-built docker image on Docker Hub, based on PyTorch 1.8.1 and CUDA 11.1.
8+ To start a container with our docker image, use the following line.
9+
10+ ``` bash
11+ docker run --gpus all -it milagraph/torchdrug
12+ ```
13+
14+ Build Docker Image
15+ ------------------
16+
17+ You may also use the Dockerfile provided in this folder to build an image from scratch.
18+ Run the following command in this directory.
19+
20+ ``` bash
21+ docker build -t " your-image-name" .
22+ ```
You can’t perform that action at this time.
0 commit comments