Skip to content

Commit

Permalink
update pytorch android native (#931)
Browse files Browse the repository at this point in the history
* update pytorch android native

* add Android S3 JNI

* add typing extension
  • Loading branch information
lanking520 committed May 3, 2021
1 parent 6a22602 commit e21b4ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/native_jni_s3_pytorch_android.yml
Expand Up @@ -54,5 +54,5 @@ jobs:
aws-region: us-east-2
- name: Copy files to S3 with the AWS CLI
run: |
aws s3 sync jnilib s3://djl-ai/publish/pytorch-1.7.1/jnilib
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/pytorch-1.7.1/jnilib*"
aws s3 sync jnilib s3://djl-ai/publish/pytorch-1.8.1/jnilib
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/pytorch-1.8.1/jnilib*"
6 changes: 3 additions & 3 deletions .github/workflows/native_s3_pytorch_android.yml
Expand Up @@ -10,8 +10,8 @@ jobs:
matrix:
format: ["armeabi-v7a", "arm64-v8a", "x86" ,"x86_64"]
env:
PYTORCH_TAG_VERSION: "v1.7.1"
PYTORCH_VERSION: "1.7.1"
PYTORCH_TAG_VERSION: "v1.8.1"
PYTORCH_VERSION: "1.8.1"
NDK_VERSION: "20.0.5594570"
steps:
- uses: actions/checkout@v1
Expand All @@ -26,7 +26,7 @@ jobs:
- name: clone pytorch
run: git clone https://github.com/pytorch/pytorch android_pytorch_tmp -b "${PYTORCH_TAG_VERSION}" --recursive
- name: install Python Dependencies
run: pip install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi
run: pip install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing_extensions
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;${NDK_VERSION}"
- name: build android
Expand Down

0 comments on commit e21b4ce

Please sign in to comment.