Name Date Size #Lines LOC

..--

analysis/H25-Apr-2025-7151

compile_tests/H25-Apr-2025-740586

export/H25-Apr-2025-7258

fbcode-dev-setup/H25-Apr-2025-9370

jit/H25-Apr-2025-154132

onnx/H25-Apr-2025-151110

release/H25-Apr-2025-593395

release_notes/H25-Apr-2025-2,1121,722

README.mdH A D25-Apr-20251.3 KiB4130

add_apache_header.shH A D25-Apr-202583 21

apache_header.txtH A D25-Apr-2025612 1615

apache_python.txtH A D25-Apr-2025670 1514

buck_setup.shH A D25-Apr-20251.1 KiB3825

build_android.shH A D25-Apr-20256.4 KiB190130

build_android_gradle.shH A D25-Apr-20253.6 KiB10368

build_host_protoc.shH A D25-Apr-20251.8 KiB6037

build_ios.shH A D25-Apr-20254.9 KiB156105

build_local.shH A D25-Apr-20252.6 KiB8354

build_mobile.shH A D25-Apr-20253.4 KiB10873

build_pytorch_android.shH A D25-Apr-20251.8 KiB5215

build_raspbian.shH A D25-Apr-20251.4 KiB4524

build_tegra_x1.shH A D25-Apr-20251.7 KiB5224

build_tizen.shH A D25-Apr-20253.8 KiB11969

build_windows.batH A D25-Apr-20251.7 KiB8161

diagnose_protobuf.pyH A D25-Apr-20252.9 KiB9374

get_python_cmake_flags.pyH A D25-Apr-2025670 256

install_triton_wheel.shH A D25-Apr-20251.4 KiB3219

proto.ps1H A D25-Apr-2025674 1916

read_conda_versions.shH A D25-Apr-20256.6 KiB18581

remove_apache_header.shH A D25-Apr-2025431 1413

temp.shH A D25-Apr-2025461 87

xcode_build.rbH A D25-Apr-20252.7 KiB7767

README.md

1This directory contains the useful tools.
2
3
4## build_android.sh
5This script is to build PyTorch/Caffe2 library for Android. Take the following steps to start the build:
6
7- set ANDROID_NDK to the location of ndk
8
9```bash
10export ANDROID_NDK=YOUR_NDK_PATH
11```
12
13- run build_android.sh
14```bash
15#in your PyTorch root directory
16bash scripts/build_android.sh
17```
18If succeeded, the libraries and headers would be generated to build_android/install directory. You can then copy these files from build_android/install to your Android project for further usage.
19
20You can also override the cmake flags via command line, e.g., following command will also compile the executable binary files:
21```bash
22bash scripts/build_android.sh -DBUILD_BINARY=ON
23```
24
25## build_ios.sh
26This script is to build PyTorch/Caffe2 library for iOS, and can only be performed on macOS. Take the following steps to start the build:
27
28- Install Xcode from App Store, and configure "Command Line Tools" properly on Xcode.
29- Install the dependencies:
30
31```bash
32brew install cmake automake libtool
33```
34
35- run build_ios.sh
36```bash
37#in your PyTorch root directory
38bash scripts/build_ios.sh
39```
40If succeeded, the libraries and headers would be generated to build_ios/install directory. You can then copy these files  to your Xcode project for further usage.
41