From fb8f4ade93509b3f2b186d388c6873573240cc2a Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 14 Apr 2025 12:16:15 -0700 Subject: [PATCH 1/3] Update demo-apps-ios.md --- docs/source/demo-apps-ios.md | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/docs/source/demo-apps-ios.md b/docs/source/demo-apps-ios.md index 09371e32918..c452e2a5f40 100644 --- a/docs/source/demo-apps-ios.md +++ b/docs/source/demo-apps-ios.md @@ -38,10 +38,9 @@ python3 --version pip --version ``` -### 3. Getting Started Tutorial +### 3. Set Up ExecuTorch -Follow the [Setting Up ExecuTorch](https://pytorch.org/executorch/stable/getting-started-setup) -tutorial to configure the basic environment: +Clone ExecuTorch and set up the environment: ```bash git clone -b viable/strict https://github.com/pytorch/executorch.git && cd executorch @@ -51,22 +50,20 @@ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip ./install_executorch.sh ``` -### 4. Clone the Demo App +### 4. Backend Dependencies + +Install additional dependencies for [Core ML](https://pytorch.org/executorch/stable/backends-coreml) and +[MPS](https://pytorch.org/executorch/stable/backends-mps) backends: ```bash -git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git +./backends/apple/coreml/scripts/install_requirements.sh +./backends/apple/mps/install_requirements.sh ``` -### 5. Backend Dependencies - -Also, follow the corresponding sections from [Core ML](https://pytorch.org/executorch/stable/build-run-coreml) and -[MPS](https://pytorch.org/executorch/stable/build-run-mps) tutorials to install additional dependencies for those -backends: +### 5. Clone the Demo App ```bash -./backends/apple/coreml/scripts/install_requirements.sh - -./backends/apple/mps/install_requirements.sh +git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git ``` ## Models and Labels @@ -101,10 +98,9 @@ curl https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt \ -o "$APP_PATH/Resources/Models/MobileNet/imagenet_classes.txt" ``` -## Final Steps +## Build and Run the App -We're almost done! Now, we just need to open the project in Xcode, run the -tests, and finally run the app. +We're almost done! Now, we just need to open the project in Xcode, run the tests, and finally run the app. ### 1. Open Project in Xcode @@ -116,8 +112,7 @@ open $APP_PATH.xcodeproj ### 2. Run Tests -You can run tests on Simulaltor directly in Xcode with `Cmd + U` or use the -command line: +You can run tests on Simulaltor directly in Xcode with `Cmd + U` or use the command line: ```bash xcrun simctl create executorch "iPhone 15" @@ -136,6 +131,4 @@ using `Cmd + R`. Try installing a Release build for better performance. Congratulations! You've successfully set up the ExecuTorch iOS Demo App. Now, you can explore and enjoy the power of ExecuTorch on your iOS device! -Learn more about integrating and running [ExecuTorch on Apple](https://pytorch.org/executorch/stable/apple-runtime) platforms. - -![](_static/img/demo_ios_xcode.jpg) +Learn more about [Using ExecuTorch on iOS](https://pytorch.org/executorch/stable/using-executorch-ios). From 465854fdf3981bb33dc76fbcfe86fea6dc1ee627 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 14 Apr 2025 12:23:53 -0700 Subject: [PATCH 2/3] Update demo-apps-ios.md --- docs/source/demo-apps-ios.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/source/demo-apps-ios.md b/docs/source/demo-apps-ios.md index c452e2a5f40..6272665600b 100644 --- a/docs/source/demo-apps-ios.md +++ b/docs/source/demo-apps-ios.md @@ -52,8 +52,7 @@ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip ### 4. Backend Dependencies -Install additional dependencies for [Core ML](https://pytorch.org/executorch/stable/backends-coreml) and -[MPS](https://pytorch.org/executorch/stable/backends-mps) backends: +Install additional dependencies for [Core ML](backends-coreml.md) and [MPS](backends-mps.md) backends: ```bash ./backends/apple/coreml/scripts/install_requirements.sh @@ -131,4 +130,4 @@ using `Cmd + R`. Try installing a Release build for better performance. Congratulations! You've successfully set up the ExecuTorch iOS Demo App. Now, you can explore and enjoy the power of ExecuTorch on your iOS device! -Learn more about [Using ExecuTorch on iOS](https://pytorch.org/executorch/stable/using-executorch-ios). +Learn more about [Using ExecuTorch on iOS](using-executorch-ios.md). From 01c6261bef310159b9891d6fdb87b1db9930e201 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 14 Apr 2025 12:28:41 -0700 Subject: [PATCH 3/3] Update demo-apps-ios.md --- docs/source/demo-apps-ios.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/demo-apps-ios.md b/docs/source/demo-apps-ios.md index 6272665600b..b74701afdf3 100644 --- a/docs/source/demo-apps-ios.md +++ b/docs/source/demo-apps-ios.md @@ -40,7 +40,7 @@ pip --version ### 3. Set Up ExecuTorch -Clone ExecuTorch and set up the environment: +Clone ExecuTorch and set up the environment as explained in the [Building from Source](using-executorch-building-from-source.md) tutorial: ```bash git clone -b viable/strict https://github.com/pytorch/executorch.git && cd executorch