pytorch/scripts
Eli Uriegas 0489b8da42 Add scripts to promote S3 artifacts from test channels to stable channels (#34274)
Summary:
Currently testing against the older release `1.4.0` with:
```
PYTORCH_S3_FROM=nightly TEST_WITHOUT_GIT_TAG=1 TEST_PYTORCH_PROMOTE_VERSION=1.4.0 scripts/release/promote/libtorch_to_s3.sh
PYTORCH_S3_FROM=nightly TEST_WITHOUT_GIT_TAG=1 TEST_PYTORCH_PROMOTE_VERSION=1.4.0 scripts/release/promote/wheel_to_s3.sh
```

These scripts can also be used for `torchvision` as well which may make the release process better there as well.

Later on this should be made into a re-usable module that can be downloaded from anywhere and used amongst all pytorch repositories.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34274

Test Plan: sandcastle_will_deliver

Differential Revision: D20294419

Pulled By: seemethere

fbshipit-source-id: c8c31b5c42af5096f09275166ac43d45a459d25c
2020-03-06 12:18:16 -08:00
..
appveyor
fbcode-dev-setup Fix typos (#30606) 2019-12-02 20:17:42 -08:00
model_zoo
onnx [ONNX] Reduce ONNX test time on CI (#33242) 2020-03-05 14:38:34 -08:00
release/promote Add scripts to promote S3 artifacts from test channels to stable channels (#34274) 2020-03-06 12:18:16 -08:00
add_apache_header.sh
apache_header.txt
apache_python.txt
build_android.sh [pytorch][mobile] change mobile build scripts to build PyTorch by default (#34203) 2020-03-05 23:40:47 -08:00
build_host_protoc.sh
build_ios.sh [pytorch][mobile] change mobile build scripts to build PyTorch by default (#34203) 2020-03-05 23:40:47 -08:00
build_local.sh
build_mobile.sh [pytorch][mobile] change mobile build scripts to build PyTorch by default (#34203) 2020-03-05 23:40:47 -08:00
build_pytorch_android.sh [pytorch][mobile] change mobile build scripts to build PyTorch by default (#34203) 2020-03-05 23:40:47 -08:00
build_raspbian.sh
build_tegra_x1.sh
build_tizen.sh
build_windows.bat
diagnose_protobuf.py
get_clang_format.py [scripts] Add script to fetch clang-format binary from AWS S3 (#33644) 2020-02-25 10:47:03 -08:00
get_python_cmake_flags.py
proto.ps1
read_conda_versions.sh
README.md
remove_apache_header.sh
run_mobilelab.py
temp.sh
xcode_build.rb Mobile Backend: NHWC memory layout + XNNPACK integration. (#33722) 2020-02-24 21:58:56 -08: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.