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 45d860c9..33a7cd9b 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 'org.pytorch:pytorch_android_lite:1.10.0' + implementation 'com.facebook.fbjni:fbjni-java-only:0.0.3' + implementation 'org.pytorch:pytorch_android_lite:1.13.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' + } } }