File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
- # Prebuild libtorch binary for CI
1
+ # Prebuilt libtorch binary for CI
2
2
3
- Download prebuild libtorch binaries from pytorch-official-site.
3
+ Download prebuilt libtorch binaries from pytorch-official-site.
4
4
Then upload them to this repo's release-page.
5
5
To do the operations, type following commands.
6
6
@@ -20,3 +20,19 @@ sudo apt install alien fakeroot
20
20
#Upload libtorch-binaries to github
21
21
> make upload
22
22
```
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
+ ```
You can’t perform that action at this time.
0 commit comments