1515
1616OUTPUT=" ${1:- executorch} "
1717EXIT_STATUS=0
18- APP_PATH=" examples/demo-apps/apple_ios /ExecuTorchDemo/ExecuTorchDemo"
18+ APP_PATH=" executorch- examples/apple /ExecuTorchDemo/ExecuTorchDemo"
1919MODEL_NAME=" mv3"
2020SIMULATOR_NAME=" executorch"
2121
@@ -44,26 +44,17 @@ say() {
4444 echo -e " \033[1m\n\t** $1 **\n\033[0m"
4545}
4646
47- say " Cloning the Code"
48-
49- pushd . > /dev/null
50- git clone -b release/0.6 https://github.com/pytorch/executorch.git " $OUTPUT "
51- cd " $OUTPUT "
52-
53- say " Updating the Submodules"
54-
55- git submodule update --init
56-
5747say " Activating a Virtual Environment"
5848
59- python3 -m venv .venv
60- source .venv/bin/activate
49+ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
6150
6251say " Installing Requirements"
6352
64- pip install --upgrade cmake pip setuptools wheel zstd
53+ ./install_executorch.sh
6554
66- ./install_executorch.sh --pybind coreml mps xnnpack
55+ say " Cloning the Demo App"
56+
57+ git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
6758
6859say " Installing CoreML Backend Requirements"
6960
@@ -88,11 +79,6 @@ say "Downloading Labels"
8879curl https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt \
8980 -o " $APP_PATH /Resources/Models/MobileNet/imagenet_classes.txt"
9081
91- say " Building Frameworks"
92-
93- ./scripts/build_apple_frameworks.sh --coreml --custom --mps --optimized --portable --quantized --xnnpack
94- mv cmake-out " $APP_PATH /Frameworks"
95-
9682say " Creating Simulator"
9783
9884xcrun simctl create " $SIMULATOR_NAME " " iPhone 15"
0 commit comments