Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
analysis/ | H | 25-Apr-2025 | - | 71 | 51 | |
compile_tests/ | H | 25-Apr-2025 | - | 740 | 586 | |
export/ | H | 25-Apr-2025 | - | 72 | 58 | |
fbcode-dev-setup/ | H | 25-Apr-2025 | - | 93 | 70 | |
jit/ | H | 25-Apr-2025 | - | 154 | 132 | |
onnx/ | H | 25-Apr-2025 | - | 151 | 110 | |
release/ | H | 25-Apr-2025 | - | 593 | 395 | |
release_notes/ | H | 25-Apr-2025 | - | 2,112 | 1,722 | |
README.md | H A D | 25-Apr-2025 | 1.3 KiB | 41 | 30 | |
add_apache_header.sh | H A D | 25-Apr-2025 | 83 | 2 | 1 | |
apache_header.txt | H A D | 25-Apr-2025 | 612 | 16 | 15 | |
apache_python.txt | H A D | 25-Apr-2025 | 670 | 15 | 14 | |
buck_setup.sh | H A D | 25-Apr-2025 | 1.1 KiB | 38 | 25 | |
build_android.sh | H A D | 25-Apr-2025 | 6.4 KiB | 190 | 130 | |
build_android_gradle.sh | H A D | 25-Apr-2025 | 3.6 KiB | 103 | 68 | |
build_host_protoc.sh | H A D | 25-Apr-2025 | 1.8 KiB | 60 | 37 | |
build_ios.sh | H A D | 25-Apr-2025 | 4.9 KiB | 156 | 105 | |
build_local.sh | H A D | 25-Apr-2025 | 2.6 KiB | 83 | 54 | |
build_mobile.sh | H A D | 25-Apr-2025 | 3.4 KiB | 108 | 73 | |
build_pytorch_android.sh | H A D | 25-Apr-2025 | 1.8 KiB | 52 | 15 | |
build_raspbian.sh | H A D | 25-Apr-2025 | 1.4 KiB | 45 | 24 | |
build_tegra_x1.sh | H A D | 25-Apr-2025 | 1.7 KiB | 52 | 24 | |
build_tizen.sh | H A D | 25-Apr-2025 | 3.8 KiB | 119 | 69 | |
build_windows.bat | H A D | 25-Apr-2025 | 1.7 KiB | 81 | 61 | |
diagnose_protobuf.py | H A D | 25-Apr-2025 | 2.9 KiB | 93 | 74 | |
get_python_cmake_flags.py | H A D | 25-Apr-2025 | 670 | 25 | 6 | |
install_triton_wheel.sh | H A D | 25-Apr-2025 | 1.4 KiB | 32 | 19 | |
proto.ps1 | H A D | 25-Apr-2025 | 674 | 19 | 16 | |
read_conda_versions.sh | H A D | 25-Apr-2025 | 6.6 KiB | 185 | 81 | |
remove_apache_header.sh | H A D | 25-Apr-2025 | 431 | 14 | 13 | |
temp.sh | H A D | 25-Apr-2025 | 461 | 8 | 7 | |
xcode_build.rb | H A D | 25-Apr-2025 | 2.7 KiB | 77 | 67 |
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