pytorch/scripts
2024-08-24 07:33:42 +00:00
..
analysis 2024-07-17 nightly release (7919f0b952) 2024-07-17 07:33:41 +00:00
compile_tests 2024-07-17 nightly release (7919f0b952) 2024-07-17 07:33:41 +00:00
export 2024-08-05 nightly release (c7cfa51721) 2024-08-05 07:33:44 +00:00
fbcode-dev-setup 2022-07-29 nightly release (357b7d589c) 2022-07-29 00:02:43 -07:00
jit 2024-07-17 nightly release (7919f0b952) 2024-07-17 07:33:41 +00:00
onnx 2023-12-02 nightly release (0fef82b3df) 2023-12-02 07:33:24 +00:00
release 2024-08-08 nightly release (ac6398b630) 2024-08-08 07:33:49 +00:00
release_notes 2024-08-05 nightly release (c7cfa51721) 2024-08-05 07:33:44 +00:00
add_apache_header.sh
apache_header.txt 2021-03-31 nightly release (920eb01e2e) 2021-03-31 00:02:04 -07:00
apache_python.txt 2021-03-31 nightly release (920eb01e2e) 2021-03-31 00:02:04 -07:00
buck_setup.sh 2022-11-19 nightly release (419ef2cdcf) 2022-11-19 00:02:50 -08:00
build_android.sh 2024-05-30 nightly release (d66f12674c) 2024-05-30 07:34:02 +00:00
build_android_gradle.sh 2024-01-19 nightly release (f302a0d380) 2024-01-19 07:33:38 +00:00
build_host_protoc.sh
build_ios.sh 2024-05-30 nightly release (d66f12674c) 2024-05-30 07:34:02 +00:00
build_local.sh
build_mobile.sh 2024-05-30 nightly release (d66f12674c) 2024-05-30 07:34:02 +00:00
build_pytorch_android.sh
build_raspbian.sh 2021-03-08 nightly release (36dc5d3b3a) 2021-03-08 17:06:31 -08:00
build_tegra_x1.sh 2024-05-05 nightly release (6d30803d64) 2024-05-05 07:33:44 +00:00
build_tizen.sh 2024-05-05 nightly release (6d30803d64) 2024-05-05 07:33:44 +00:00
build_windows.bat
diagnose_protobuf.py 2024-07-17 nightly release (7919f0b952) 2024-07-17 07:33:41 +00:00
get_python_cmake_flags.py 2024-07-17 nightly release (7919f0b952) 2024-07-17 07:33:41 +00:00
install_triton_wheel.sh 2024-08-24 nightly release (2553278bae) 2024-08-24 07:33:42 +00:00
proto.ps1 2023-12-19 nightly release (9dda4b20a0) 2023-12-19 07:33:30 +00:00
read_conda_versions.sh
README.md 2021-03-08 nightly release (36dc5d3b3a) 2021-03-08 17:06:31 -08:00
remove_apache_header.sh
temp.sh
xcode_build.rb 2023-10-07 nightly release (90bf6e3938) 2023-10-07 07:34:05 +00:00

This directory contains the useful tools.

build_android.sh

This script is to build PyTorch/Caffe2 library for Android. Take the following steps to start the build:

  • set ANDROID_NDK to the location of ndk
export ANDROID_NDK=YOUR_NDK_PATH
  • run build_android.sh
#in your PyTorch root directory
bash scripts/build_android.sh

If 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.

You can also override the cmake flags via command line, e.g., following command will also compile the executable binary files:

bash scripts/build_android.sh -DBUILD_BINARY=ON

build_ios.sh

This script is to build PyTorch/Caffe2 library for iOS, and can only be performed on macOS. Take the following steps to start the build:

  • Install Xcode from App Store, and configure "Command Line Tools" properly on Xcode.
  • Install the dependencies:
brew install cmake automake libtool
  • run build_ios.sh
#in your PyTorch root directory
bash scripts/build_ios.sh

If 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.