xref: /aosp_15_r20/external/executorch/extension/benchmark/apple/Benchmark/Frameworks/download_frameworks.sh (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1#!/bin/bash
2# Copyright (c) Meta Platforms, Inc. and affiliates.
3# All rights reserved.
4#
5# This source code is licensed under the BSD-style license found in the
6# LICENSE file in the root directory of this source tree.
7
8VERSION="0.4.0.20241120"
9FRAMEWORKS=(
10  "backend_coreml"
11  "backend_mps"
12  "backend_xnnpack"
13  "executorch"
14  "kernels_custom"
15  "kernels_optimized"
16  "kernels_portable"
17  "kernels_quantized"
18)
19
20cd "$(dirname "$0")" || exit
21
22for FRAMEWORK in "${FRAMEWORKS[@]}"; do
23  rm -f "${FRAMEWORK}-${VERSION}.zip"
24  rm -rf "${FRAMEWORK}.xcframework"
25  curl -sSLO "https://ossci-ios.s3.amazonaws.com/executorch/${FRAMEWORK}-${VERSION}.zip" && \
26  unzip -q "${FRAMEWORK}-${VERSION}.zip" && \
27  rm "${FRAMEWORK}-${VERSION}.zip"
28done
29