diff --git a/app/build.gradle b/app/build.gradle index 9f149e3..a9ae323 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ android { minSdkVersion 29 targetSdkVersion 34 versionCode 4 - versionName "3.0-alpha-240420" + versionName "3.0-alpha-240420-02" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildFeatures { diff --git a/app/src/main/java/com/maary/shareas/WallpaperViewModel.kt b/app/src/main/java/com/maary/shareas/WallpaperViewModel.kt index 127b8e6..b07c7c2 100644 --- a/app/src/main/java/com/maary/shareas/WallpaperViewModel.kt +++ b/app/src/main/java/com/maary/shareas/WallpaperViewModel.kt @@ -652,12 +652,12 @@ class WallpaperViewModel : ViewModel() { val sessionOptions: OrtSession.SessionOptions = OrtSession.SessionOptions() sessionOptions.registerCustomOpLibrary(OrtxPackage.getLibraryPath()) - sessionOptions.addNnapi( - EnumSet.of( - NNAPIFlags.USE_FP16, - NNAPIFlags.CPU_DISABLED - ) - ) +// sessionOptions.addNnapi( +// EnumSet.of( +// NNAPIFlags.USE_FP16, +// NNAPIFlags.CPU_DISABLED +// ) +// ) ortSession = ortEnv.createSession(readModel(context, model), sessionOptions) // 1. 输入是一个 bimap