From 253f2fae26c7d7d57388fb7158c6862a07dbb962 Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Tue, 26 Mar 2024 16:15:59 -0700 Subject: [PATCH] Demo app fix (#2697) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/2697 Reviewed By: mergennachin, shoumikhin Differential Revision: D55392526 Pulled By: kirklandsign fbshipit-source-id: a9ca2a12d85dc0b3c16c43689bbdb334884e852b --- .../java/com/example/executorchdemo/ClassificationActivity.java | 1 - extension/android/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ClassificationActivity.java b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ClassificationActivity.java index 93235720b4..cafa971975 100644 --- a/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ClassificationActivity.java +++ b/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/ClassificationActivity.java @@ -22,7 +22,6 @@ import org.pytorch.executorch.EValue; import org.pytorch.executorch.Module; import org.pytorch.executorch.Tensor; -import org.pytorch.executorch.TensorImageUtils; public class ClassificationActivity extends Activity implements Runnable { diff --git a/extension/android/CMakeLists.txt b/extension/android/CMakeLists.txt index 1c9333713a..210ffb212b 100644 --- a/extension/android/CMakeLists.txt +++ b/extension/android/CMakeLists.txt @@ -19,7 +19,7 @@ add_subdirectory(${EXECUTORCH_ROOT}/examples/third-party/fbjni if(CMAKE_TOOLCHAIN_ANDROID) add_library(executorch_jni SHARED jni/jni_layer.cpp) target_link_libraries(executorch_jni extension_data_loader extension_module - fbjni) + portable_ops_lib fbjni) if(EXECUTORCH_BUILD_QNN) target_link_libraries(executorch_jni qnn_executorch_backend) endif()