Skip to content

Commit 82e9a93

Browse files
Update README.md
1 parent 53c6428 commit 82e9a93

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Prebuild libtorch binary for CI
1+
# Prebuilt libtorch binary for CI
22

3-
Download prebuild libtorch binaries from pytorch-official-site.
3+
Download prebuilt libtorch binaries from pytorch-official-site.
44
Then upload them to this repo's release-page.
55
To do the operations, type following commands.
66

@@ -20,3 +20,19 @@ sudo apt install alien fakeroot
2020
#Upload libtorch-binaries to github
2121
> make upload
2222
```
23+
24+
# APT
25+
26+
We provide a apt repository of libtorch for ubuntu.
27+
You can install libtorch with the following command.
28+
29+
```shell
30+
sudo bash -c "echo deb [trusted=yes] https://github.com/hasktorch/libtorch-binary-for-ci/releases/download/apt ./ > /etc/apt/sources.list.d/libtorch.list"
31+
sudo apt update
32+
# For CPU-only
33+
sudo apt install libtorch=1.8.1+cpu-1
34+
# For CUDA-10.2
35+
sudo apt install libtorch=1.8.1+cu102-1
36+
# For CUDA-11.1
37+
sudo apt install libtorch=1.8.1+cu111-1
38+
```

0 commit comments

Comments
 (0)