From 5d5afafdf87a155ed373257991ea80e8f326495c Mon Sep 17 00:00:00 2001 From: Jagadeesh J Date: Tue, 20 Dec 2022 13:38:44 +0530 Subject: [PATCH 1/2] fix/Seq2seq-App Signed-off-by: Jagadeesh J --- Seq2SeqNMT/app/build.gradle | 9 +++++++-- Seq2SeqNMT/app/src/main/AndroidManifest.xml | 3 ++- Seq2SeqNMT/build.gradle | 5 +++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Seq2SeqNMT/app/build.gradle b/Seq2SeqNMT/app/build.gradle index 45d860c9..f2773a67 100644 --- a/Seq2SeqNMT/app/build.gradle +++ b/Seq2SeqNMT/app/build.gradle @@ -1,13 +1,13 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 30 + compileSdkVersion 33 buildToolsVersion "30.0.1" defaultConfig { applicationId "com.example.seq2seqnmt" minSdkVersion 21 - targetSdkVersion 28 + targetSdkVersion 33 versionCode 1 versionName "1.0" @@ -33,6 +33,11 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + implementation 'com.facebook.fbjni:fbjni-java-only:0.0.3' implementation 'org.pytorch:pytorch_android_lite:1.10.0' + // if using the libraries built from source + // implementation(name:'pytorch_android-release', ext:'aar') + // implementation(name:'pytorch_android_torchvision-release', ext:'aar') + } \ No newline at end of file diff --git a/Seq2SeqNMT/app/src/main/AndroidManifest.xml b/Seq2SeqNMT/app/src/main/AndroidManifest.xml index 562c20c9..438284b4 100644 --- a/Seq2SeqNMT/app/src/main/AndroidManifest.xml +++ b/Seq2SeqNMT/app/src/main/AndroidManifest.xml @@ -9,7 +9,8 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> - + diff --git a/Seq2SeqNMT/build.gradle b/Seq2SeqNMT/build.gradle index 6754c23d..6dc83064 100644 --- a/Seq2SeqNMT/build.gradle +++ b/Seq2SeqNMT/build.gradle @@ -3,6 +3,7 @@ buildscript { repositories { google() jcenter() + mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:4.0.1" @@ -16,6 +17,10 @@ allprojects { repositories { google() jcenter() + mavenCentral() + flatDir { + dirs 'libs' + } } } From 270e74ebd95e04eccc84935a095732a7904ad90c Mon Sep 17 00:00:00 2001 From: Jagadeesh J Date: Mon, 30 Jan 2023 08:12:00 +0530 Subject: [PATCH 2/2] change pt version Signed-off-by: Jagadeesh J --- Seq2SeqNMT/README.md | 4 ++-- Seq2SeqNMT/app/build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Seq2SeqNMT/README.md b/Seq2SeqNMT/README.md index 7ec08d29..0fd126b0 100644 --- a/Seq2SeqNMT/README.md +++ b/Seq2SeqNMT/README.md @@ -12,9 +12,9 @@ This Android demo app shows: ## Prerequisites -* PyTorch 1.10.0 (Optional) +* PyTorch 1.13.0 (Optional) * Python 3.8 (Optional) -* Android Pytorch library org.pytorch:pytorch_android_lite:1.10.0 +* Android Pytorch library org.pytorch:pytorch_android_lite:1.13.0 * Android Studio 4.0.1 or later ## Quick Start diff --git a/Seq2SeqNMT/app/build.gradle b/Seq2SeqNMT/app/build.gradle index f2773a67..33a7cd9b 100644 --- a/Seq2SeqNMT/app/build.gradle +++ b/Seq2SeqNMT/app/build.gradle @@ -34,7 +34,7 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.facebook.fbjni:fbjni-java-only:0.0.3' - implementation 'org.pytorch:pytorch_android_lite:1.10.0' + implementation 'org.pytorch:pytorch_android_lite:1.13.0' // if using the libraries built from source // implementation(name:'pytorch_android-release', ext:'aar')