From 19f6ba1169e8f6ead6ac0bac58f3069f57fc708c Mon Sep 17 00:00:00 2001 From: Jagadeesh J Date: Tue, 20 Dec 2022 10:43:52 +0530 Subject: [PATCH 1/2] fix: bump pytorch to 1.13.0 Signed-off-by: Jagadeesh J --- PyTorchDemoApp/app/build.gradle | 9 +++++++-- PyTorchDemoApp/app/src/main/AndroidManifest.xml | 3 ++- PyTorchDemoApp/build.gradle | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/PyTorchDemoApp/app/build.gradle b/PyTorchDemoApp/app/build.gradle index 06bb95f4..26daef1e 100644 --- a/PyTorchDemoApp/app/build.gradle +++ b/PyTorchDemoApp/app/build.gradle @@ -12,11 +12,11 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } - compileSdkVersion 28 + compileSdkVersion 33 defaultConfig { applicationId "org.pytorch.demo" minSdkVersion 21 - targetSdkVersion 28 + targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -40,4 +40,9 @@ dependencies { implementation 'org.pytorch:pytorch_android:1.6.0-SNAPSHOT' implementation 'org.pytorch:pytorch_android_torchvision:1.6.0-SNAPSHOT' + + // Uncomment below lines for using libs from src build + // implementation(name: 'pytorch_android-release', ext:'aar') + // implementation(name: 'pytorch_android_torchvision-release', ext:'aar') + } diff --git a/PyTorchDemoApp/app/src/main/AndroidManifest.xml b/PyTorchDemoApp/app/src/main/AndroidManifest.xml index 5512046a..e2ea8dd2 100644 --- a/PyTorchDemoApp/app/src/main/AndroidManifest.xml +++ b/PyTorchDemoApp/app/src/main/AndroidManifest.xml @@ -11,7 +11,8 @@ android:theme="@style/AppTheme.NoActionBar"> + android:label="@string/app_name" + android:exported="true"> diff --git a/PyTorchDemoApp/build.gradle b/PyTorchDemoApp/build.gradle index 462b7120..ada7ce84 100644 --- a/PyTorchDemoApp/build.gradle +++ b/PyTorchDemoApp/build.gradle @@ -13,7 +13,9 @@ allprojects { repositories { google() jcenter() - + flatDir{ + dirs 'libs' + } } } From 714c84d4cc7d9d6b73a525f406b3c05956e9b91a Mon Sep 17 00:00:00 2001 From: Jagadeesh J Date: Mon, 30 Jan 2023 08:02:09 +0530 Subject: [PATCH 2/2] change pt version Signed-off-by: Jagadeesh J --- PyTorchDemoApp/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyTorchDemoApp/app/build.gradle b/PyTorchDemoApp/app/build.gradle index 26daef1e..c8d5ce2a 100644 --- a/PyTorchDemoApp/app/build.gradle +++ b/PyTorchDemoApp/app/build.gradle @@ -38,8 +38,8 @@ dependencies { implementation "androidx.camera:camera-camera2:$camerax_version" implementation 'com.google.android.material:material:1.0.0-beta01' - implementation 'org.pytorch:pytorch_android:1.6.0-SNAPSHOT' - implementation 'org.pytorch:pytorch_android_torchvision:1.6.0-SNAPSHOT' + implementation 'org.pytorch:pytorch_android:1.13.0-SNAPSHOT' + implementation 'org.pytorch:pytorch_android_torchvision:1.13.0-SNAPSHOT' // Uncomment below lines for using libs from src build // implementation(name: 'pytorch_android-release', ext:'aar')