-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[android][circle_ci] android build and nightly publish jobs #3679
Conversation
7b4ea9e
to
5ca4cb2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks a lot for the PR @IvanKobzarev !
I have one question regarding versioning, otherwise the PR is good to merge.
implementation 'org.pytorch:pytorch_android:1.8.0-SNAPSHOT' | ||
implementation 'org.pytorch:pytorch_android_torchvision:1.8.0-SNAPSHOT' | ||
implementation "org.pytorch:pytorch_android:$pytorchAndroidVersion" | ||
implementation "org.pytorch:pytorch_android_torchvision:$pytorchAndroidVersion" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should discuss if we would want torchvision android artifacts to be versioned with the same version as PyTorch or with the version of torchvision (which is different than Pytorch versions).
In one hand, having the same version as PyTorch makes it easier for matching dependencies, on the other hand there are discrepancies wrt what we ship in the Python side. Thoughts?
Let's get this merged to unblock, and then maybe revisit the versioning in a follow-up PR |
Summary: Co-authored-by: Francisco Massa <fvsmassa@gmail.com> Reviewed By: datumbox Differential Revision: D28473323 fbshipit-source-id: 92bb8e34aeedf705f6217bd467c84b27e89145bc
Introducing 2 additional jobs:
binary_libtorchvision_ops_android - building torchvision_ops for android on every PR
nightly-binary-libtorchvision_ops-android-upload - publish nightlies to sonatype
Both jobs use docker image circleci/android:api-29-ndk with preinstalled android sdk/ndk.
Installing gradle from pytorch aws (just unpacking)
Jobs with default resources failed, so changed:
gradle jvm args: org.gradle.jvmargs=-Xmx12g
resource_class: xlarge