mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Update Docs for building PyTorch for Android.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32578 Reviewed By: ljk53 Differential Revision: D19588904 Pulled By: dreiss fbshipit-source-id: 2934752b9c5b94f2f141417669d8385be44d703b
This commit is contained in:
parent
fcf9fcedf4
commit
bc2e05a398
1 changed files with 2 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ For this you can use `./scripts/build_pytorch_android.sh` script.
|
|||
```
|
||||
git clone https://github.com/pytorch/pytorch.git
|
||||
cd pytorch
|
||||
git submodule update --init --recursive
|
||||
sh ./scripts/build_pytorch_android.sh
|
||||
```
|
||||
|
||||
|
|
@ -59,7 +60,7 @@ The workflow contains several steps:
|
|||
2\. Create symbolic links to the results of those builds:
|
||||
`android/pytorch_android/src/main/jniLibs/${abi}` to the directory with output libraries
|
||||
`android/pytorch_android/src/main/cpp/libtorch_include/${abi}` to the directory with headers. These directories are used to build `libpytorch.so` library that will be loaded on android device.
|
||||
|
||||
|
||||
3\. And finally run `gradle` in `android/pytorch_android` directory with task `assembleRelease`
|
||||
|
||||
Script requires that Android SDK, Android NDK and gradle are installed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue