You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For android demo, use links in pytorch-labs/executorch-examples
Remove references to old demo app
Add video
Co-authored-by: Hansong <[email protected]>
Building an ExecuTorch Android Demo App <https://github.com/pytorch-labs/executorch-examples/tree/main/dl3/android/DeepLabV3Demo#executorch-android-demo-app>
Copy file name to clipboardExpand all lines: docs/source/tutorial-xnnpack-delegate-lowering.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ Now you should be able to find the executable built at `./cmake-out/backends/xnn
176
176
```
177
177
178
178
## Building and Linking with the XNNPACK Backend
179
-
You can build the XNNPACK backend [CMake target](https://github.com/pytorch/executorch/blob/main/backends/xnnpack/CMakeLists.txt#L83), and link it with your application binary such as an Android or iOS application. For more information on this you may take a look at this [resource](demo-apps-android.md) next.
179
+
You can build the XNNPACK backend [CMake target](https://github.com/pytorch/executorch/blob/main/backends/xnnpack/CMakeLists.txt#L83), and link it with your application binary such as an Android or iOS application. For more information on this you may take a look at this [resource](./using-executorch-android.md) next.
180
180
181
181
## Profiling
182
182
To enable profiling in the `xnn_executor_runner` pass the flags `-DEXECUTORCH_ENABLE_EVENT_TRACER=ON` and `-DEXECUTORCH_BUILD_DEVTOOLS=ON` to the build command (add `-DENABLE_XNNPACK_PROFILING=ON` for additional details). This will enable ETDump generation when running the inference and enables command line flags for profiling (see `xnn_executor_runner --help` for details).
Copy file name to clipboardExpand all lines: docs/source/using-executorch-android.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ The AAR artifact contains the Java library for users to integrate with their Jav
22
22
- LLaMa-specific Custom ops library.
23
23
- Comes with two ABI variants, arm64-v8a and x86\_64.
24
24
25
+
The AAR library can be used for generic Android device with arm64-v8a or x86_64 architecture. It can be used across form factors, including phones, tablets, tv boxes, etc, as it does not contain any UI components.
26
+
25
27
## Using AAR from Maven Central
26
28
27
29
ExecuTorch is available on [Maven Central](https://mvnrepository.com/artifact/org.pytorch/executorch-android).
@@ -38,6 +40,11 @@ dependencies {
38
40
39
41
Note: `org.pytorch:executorch-android:0.5.1` corresponds to executorch v0.5.0.
40
42
43
+
Click the screenshot below to watch the *demo video* on how to add the package and run a simple ExecuTorch model with Android Studio.
Copy file name to clipboardExpand all lines: docs/source/using-executorch-building-from-source.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Or alternatively, [install conda on your machine](https://conda.io/projects/cond
63
63
./install_executorch.sh
64
64
```
65
65
66
-
Use the [`--pybind` flag](https://github.com/pytorch/executorch/blob/main/install_executorch.sh#L26-L29) to install with pybindings and dependencies for other backends.
66
+
Use the [`--pybind` flag](https://github.com/pytorch/executorch/blob/main/install_executorch.sh#L26-L29) to install with pybindings and dependencies for other backends.
Following are instruction on how to perform cross compilation for Android and iOS.
207
207
208
208
### Android
209
+
210
+
#### Building executor_runner shell binary
209
211
- Prerequisite: [Android NDK](https://developer.android.com/ndk), choose one of the following:
210
212
- Option 1: Download Android Studio by following the instructions to [install ndk](https://developer.android.com/studio/projects/install-ndk).
211
213
- Option 2: Download Android NDK directly from [here](https://developer.android.com/ndk/downloads).
@@ -243,7 +245,7 @@ sh scripts/build_android_library.sh
243
245
```
244
246
245
247
This script will build the AAR, which contains the Java API and its corresponding JNI library. Please see
246
-
[this documentation](./using-executorch-android.md#using-aar-file) for usage.
248
+
[this documentation](./using-executorch-android#using-aar-file) for usage.
247
249
248
250
### iOS
249
251
@@ -278,5 +280,5 @@ Check out the [iOS Demo App](demo-apps-ios.md) tutorial for more info.
278
280
You have successfully cross-compiled `executor_runner` binary to iOS and Android platforms. You can start exploring advanced features and capabilities. Here is a list of sections you might want to read next:
279
281
280
282
*[Selective build](kernel-library-selective-build.md) to build the runtime that links to only kernels used by the program, which can provide significant binary size savings.
281
-
* Tutorials on building [Android](./demo-apps-android.md) and [iOS](./demo-apps-ios.md) demo apps.
283
+
* Tutorials on building [Android](https://github.com/pytorch-labs/executorch-examples/tree/main/dl3/android/DeepLabV3Demo#executorch-android-demo-app) and [iOS](./demo-apps-ios.md) demo apps.
282
284
* Tutorials on deploying applications to embedded devices such as [ARM Cortex-M/Ethos-U](backends-arm-ethos-u.md) and [XTensa HiFi DSP](./backends-cadence.md).
0 commit comments