@@ -38,10 +38,9 @@ python3 --version
38
38
pip --version
39
39
```
40
40
41
- ### 3. Getting Started Tutorial
41
+ ### 3. Set Up ExecuTorch
42
42
43
- Follow the [ Setting Up ExecuTorch] ( https://pytorch.org/executorch/stable/getting-started-setup )
44
- tutorial to configure the basic environment:
43
+ Clone ExecuTorch and set up the environment as explained in the [ Building from Source] ( using-executorch-building-from-source.md ) tutorial:
45
44
46
45
``` bash
47
46
git clone -b viable/strict https://github.com/pytorch/executorch.git && cd executorch
@@ -51,22 +50,19 @@ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
51
50
./install_executorch.sh
52
51
```
53
52
54
- ### 4. Clone the Demo App
53
+ ### 4. Backend Dependencies
54
+
55
+ Install additional dependencies for [ Core ML] ( backends-coreml.md ) and [ MPS] ( backends-mps.md ) backends:
55
56
56
57
``` bash
57
- git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
58
+ ./backends/apple/coreml/scripts/install_requirements.sh
59
+ ./backends/apple/mps/install_requirements.sh
58
60
```
59
61
60
- ### 5. Backend Dependencies
61
-
62
- Also, follow the corresponding sections from [ Core ML] ( https://pytorch.org/executorch/stable/build-run-coreml ) and
63
- [ MPS] ( https://pytorch.org/executorch/stable/build-run-mps ) tutorials to install additional dependencies for those
64
- backends:
62
+ ### 5. Clone the Demo App
65
63
66
64
``` bash
67
- ./backends/apple/coreml/scripts/install_requirements.sh
68
-
69
- ./backends/apple/mps/install_requirements.sh
65
+ git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
70
66
```
71
67
72
68
## Models and Labels
@@ -101,10 +97,9 @@ curl https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt \
101
97
-o " $APP_PATH /Resources/Models/MobileNet/imagenet_classes.txt"
102
98
```
103
99
104
- ## Final Steps
100
+ ## Build and Run the App
105
101
106
- We're almost done! Now, we just need to open the project in Xcode, run the
107
- tests, and finally run the app.
102
+ We're almost done! Now, we just need to open the project in Xcode, run the tests, and finally run the app.
108
103
109
104
### 1. Open Project in Xcode
110
105
@@ -116,8 +111,7 @@ open $APP_PATH.xcodeproj
116
111
117
112
### 2. Run Tests
118
113
119
- You can run tests on Simulaltor directly in Xcode with ` Cmd + U ` or use the
120
- command line:
114
+ You can run tests on Simulaltor directly in Xcode with ` Cmd + U ` or use the command line:
121
115
122
116
``` bash
123
117
xcrun simctl create executorch " iPhone 15"
@@ -136,6 +130,4 @@ using `Cmd + R`. Try installing a Release build for better performance.
136
130
Congratulations! You've successfully set up the ExecuTorch iOS Demo App. Now,
137
131
you can explore and enjoy the power of ExecuTorch on your iOS device!
138
132
139
- Learn more about integrating and running [ ExecuTorch on Apple] ( https://pytorch.org/executorch/stable/apple-runtime ) platforms.
140
-
141
- ![ ] ( _static/img/demo_ios_xcode.jpg )
133
+ Learn more about [ Using ExecuTorch on iOS] ( using-executorch-ios.md ) .
0 commit comments