Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix/Seq2seq-App #293

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Seq2SeqNMT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions Seq2SeqNMT/app/build.gradle
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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')

}
3 changes: 2 additions & 1 deletion Seq2SeqNMT/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
5 changes: 5 additions & 0 deletions Seq2SeqNMT/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
Expand All @@ -16,6 +17,10 @@ allprojects {
repositories {
google()
jcenter()
mavenCentral()
flatDir {
dirs 'libs'
}
}
}

Expand Down