Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Android Application Not Running on NPU #41

Open
yuguolong opened this issue Jan 10, 2025 · 2 comments
Open

Issue: Android Application Not Running on NPU #41

yuguolong opened this issue Jan 10, 2025 · 2 comments
Labels
question Further information is requested

Comments

@yuguolong
Copy link

Description:

I used the provided ImageClassification program and ran it on my Android device, which showed that the NPU failed to load.

Environment Details:

Chip: QCS6490
Android Subsystem: Android 13
QnnVersion: 2.28.2
Model: MobileNet-v2-Quantized (https://huggingface.co/qualcomm/MobileNet-v2-Quantized)
Model precision: int8

Log

2024-05-14 19:55:38.777  9985-9985  Perf                    com.quicinc.imageclassification      I  Connecting to perf service.
2024-05-14 19:55:38.781  9985-9985  GraphicsEnvironment     com.quicinc.imageclassification      V  ANGLE Developer option for 'com.quicinc.imageclassification' set to: 'default'
2024-05-14 19:55:38.782  9985-9985  GraphicsEnvironment     com.quicinc.imageclassification      V  ANGLE GameManagerService for com.quicinc.imageclassification: false
2024-05-14 19:55:38.782  9985-9985  GraphicsEnvironment     com.quicinc.imageclassification      V  Updatable production driver is not supported on the device.
2024-05-14 19:55:38.786  9985-9985  NetworkSecurityConfig   com.quicinc.imageclassification      D  No Network Security Config specified, using platform default
2024-05-14 19:55:38.787  9985-9985  NetworkSecurityConfig   com.quicinc.imageclassification      D  No Network Security Config specified, using platform default
2024-05-14 19:55:38.831  9985-9985  AppCompatDelegate       com.quicinc.imageclassification      D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-05-14 19:55:38.869  9985-9985  eclassification         com.quicinc.imageclassification      W  Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-05-14 19:55:38.888  9985-9985  Compatibil...geReporter com.quicinc.imageclassification      D  Compat change id reported: 210923482; UID 10120; state: ENABLED
2024-05-14 19:55:38.978  9985-10016 TensorFlowLite          com.quicinc.imageclassification      I  Loaded native library: tensorflowlite_jni
2024-05-14 19:55:38.980  9985-10016 TensorFlowLite          com.quicinc.imageclassification      I  Didn't load native library: tensorflowlite_jni_gms_client
2024-05-14 19:55:38.985  9985-10016 tflite                  com.quicinc.imageclassification      I  Created TensorFlow Lite delegate for GPU.
2024-05-14 19:55:38.992  9985-10016 tflite                  com.quicinc.imageclassification      I  Initialized TensorFlow Lite runtime.
2024-05-14 19:55:38.993  9985-10013 AdrenoGLES-0            com.quicinc.imageclassification      I  QUALCOMM build                   : a3cdec2236, Ief33eea0db
                                                                                                    Build Date                       : 08/23/22
                                                                                                    OpenGL ES Shader Compiler Version: EV031.35.01.12
                                                                                                    Local Branch                     : 
                                                                                                    Remote Branch                    : 
                                                                                                    Remote Branch                    : 
                                                                                                    Reconstruct Branch               : 
2024-05-14 19:55:38.993  9985-10013 AdrenoGLES-0            com.quicinc.imageclassification      I  Build Config                     : S P 10.0.7 AArch64
2024-05-14 19:55:38.993  9985-10013 AdrenoGLES-0            com.quicinc.imageclassification      I  Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
2024-05-14 19:55:38.994  9985-10016 libc                    com.quicinc.imageclassification      W  Access denied finding property "ro.hardware.chipname"
2024-05-14 19:55:39.007  9985-10013 AdrenoGLES-0            com.quicinc.imageclassification      I  PFP: 0x016dc094, ME: 0x00000000
2024-05-14 19:55:39.008  9985-10016 QnnDsp                  com.quicinc.imageclassification      W   <W> Initializing HtpProvider
2024-05-14 19:55:39.013  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 87, configured heap IDs: system (0x2000000), contig (0x10), secure (0x400), secure flags (0x80080000)
2024-05-14 19:55:39.013  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3092: fastrpc_apps_user_init done with default domain:3 and &fastrpc_trace:0x72d95e4fa0
2024-05-14 19:55:39.014  9985-10016 tflite                  com.quicinc.imageclassification      W  WARNING: [Qnn]  <W> Function not called, PrepareLib isn't loaded!
2024-05-14 19:55:39.014  9985-10016 tflite                  com.quicinc.imageclassification      W  WARNING: [Qnn]  <W> Cost Based unsupported on soc SM7325
2024-05-14 19:55:39.014  9985-10016 tflite                  com.quicinc.imageclassification      W  WARNING: [Qnn]  <W> Specified config SOC, ignoring on real target
2024-05-14 19:55:39.014  9985-10016 ion                     com.quicinc.imageclassification      E  ioctl c0044901 failed with code -1: Inappropriate ioctl for device
2024-05-14 19:55:39.014  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2470: open_device_node: no access to default device of domain 3, open thru HAL, (sess_id 0)
2024-05-14 19:55:39.011  9985-9985  pool-2-thread-1         com.quicinc.imageclassification      W  type=1400 audit(0.0:1984): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=16762 scontext=u:r:untrusted_app:s0:c120,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0 app=com.quicinc.imageclassification
2024-05-14 19:55:39.011  9985-9985  pool-2-thread-1         com.quicinc.imageclassification      W  type=1400 audit(0.0:1985): avc: denied { open } for path="/dev/adsprpc-smd" dev="tmpfs" ino=1406 scontext=u:r:untrusted_app:s0:c120,c256,c512,c768 tcontext=u:object_r:vendor_qdsp_device:s0 tclass=chr_file permissive=0 app=com.quicinc.imageclassification
2024-05-14 19:55:39.017  9985-10016 dsp-client              com.quicinc.imageclassification      I  DspClient.cpp (132): open_hal_session: opened device fd 93 for domain 3
2024-05-14 19:55:39.017  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2500: close_device_node: close device 93 thru HAL on domain 3
2024-05-14 19:55:39.020  9985-10016 dsp-client              com.quicinc.imageclassification      I  DspClient.cpp (152): close_hal_session: closed device fd 93 on domain 3
2024-05-14 19:55:39.020  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2044: remote_session_control DSP info request for domain 3, thread priority -1, stack size 17408
2024-05-14 19:55:39.020  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2470: open_device_node: no access to default device of domain 3, open thru HAL, (sess_id 0)
2024-05-14 19:55:39.015  9985-9985  pool-2-thread-1         com.quicinc.imageclassification      W  type=1400 audit(0.0:1986): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=16762 scontext=u:r:untrusted_app:s0:c120,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0 app=com.quicinc.imageclassification
2024-05-14 19:55:39.015  9985-9985  pool-2-thread-1         com.quicinc.imageclassification      W  type=1400 audit(0.0:1987): avc: denied { open } for path="/dev/adsprpc-smd" dev="tmpfs" ino=1406 scontext=u:r:untrusted_app:s0:c120,c256,c512,c768 tcontext=u:object_r:vendor_qdsp_device:s0 tclass=chr_file permissive=0 app=com.quicinc.imageclassification
2024-05-14 19:55:39.020  9985-10016 dsp-client              com.quicinc.imageclassification      I  DspClient.cpp (132): open_hal_session: opened device fd 93 for domain 3
2024-05-14 19:55:39.025  9985-10016 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2660: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
2024-05-14 19:55:39.025  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:200: Reading configuration file: com.quicinc.imageclassification.debugconfig
2024-05-14 19:55:39.050  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2848: Created user PD on domain 3 (attrs 0x8, debug_trace 0x0)
2024-05-14 19:55:39.053  9985-10021 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:484: Successfully set remote user thread priority to 192 and stack size to 17408 for domain 3
2024-05-14 19:55:39.053  9985-10021 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
2024-05-14 19:55:39.054  9985-10016 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/log_config.c:567:Error : Unable to add watcher for folder /vendor/lib/rfsa/adsp : errno is Permission denied
2024-05-14 19:55:39.054  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:273: fastrpc_perf_init: enabled systrace 0x0 and RPC traces (kernel 0, dsp 0) with frequency 1000
2024-05-14 19:55:39.054  9985-10026 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
2024-05-14 19:55:39.055  9985-10026 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /data/app/~~QjHTbPYypXiceTpAXV7w-A==/com.quicinc.imageclassification-zUEFknvQWNtQRXUjCoGx6A==/lib/arm64/com.quicinc.imageclassification.farf. (No such file or directory)
2024-05-14 19:55:39.055  9985-10026 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/com.quicinc.imageclassification.farf. (No such file or directory)
2024-05-14 19:55:39.055  9985-10021 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0xd95e79e8 (idx 0)
2024-05-14 19:55:39.056  9985-10021 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /data/app/~~QjHTbPYypXiceTpAXV7w-A==/com.quicinc.imageclassification-zUEFknvQWNtQRXUjCoGx6A==/lib/arm64/libQnnHtpV68Skel.so
2024-05-14 19:55:39.057  9985-10021 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0xd95e7ae8 (idx 1)
2024-05-14 19:55:39.063  9985-10013 Parcel                  com.quicinc.imageclassification      W  Expecting binder but got null!
2024-05-14 19:55:39.076  9985-10021 com.quicin...sification com.quicinc.imageclassification      W  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:892: Warning: apps_std_fopen_with_env failed with 0x2 for libc++.so.1 (No such file or directory)
2024-05-14 19:55:39.078  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.078  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.078  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.080  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.080  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.081  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.081  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.081  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.083  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.083  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.083  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.084  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.084  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.088  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.088  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.088  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.089  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.089  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.091  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.091  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:334::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.091  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:346:Error 0x9: freopen for 464 failed. errno: Bad file descriptor
2024-05-14 19:55:39.092  9985-10021 com.quicin...sification com.quicinc.imageclassification      W  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:892: Warning: apps_std_fopen_with_env failed with 0x2 for libc++abi.so.1 (No such file or directory)
2024-05-14 19:55:39.093  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.093  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.093  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.095  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.095  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.098  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.098  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.098  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.099  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.099  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.099  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.100  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.100  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.102  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.102  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:508::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.102  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:529:Error 0x9: fseek failed for 464, errno is Bad file descriptor
2024-05-14 19:55:39.103  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.103  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:360::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.105  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:235:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor 
2024-05-14 19:55:39.105  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:334::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
2024-05-14 19:55:39.105  9985-10021 com.quicin...sification com.quicinc.imageclassification      E  vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:346:Error 0x9: freopen for 464 failed. errno: Bad file descriptor
2024-05-14 19:55:39.145  9985-10016 com.quicin...sification com.quicinc.imageclassification      I  vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1401: remote_handle64_open: Successfully opened handle 0x9b5855d0 for file:///libQnnHtpV68Skel.so?qnn_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3
2024-05-14 19:55:39.152  9985-10016 tflite                  com.quicinc.imageclassification      W  WARNING: [Qnn]  <W> Function not called, PrepareLib isn't loaded!
2024-05-14 19:55:39.153  9985-10016 tflite                  com.quicinc.imageclassification      W  WARNING: [Qnn]  <W> PrepareLibLoader Loading libQnnHtpPrepare.so
2024-05-14 19:55:39.273  9985-10016 tflite                  com.quicinc.imageclassification      I  Replacing 108 out of 108 node(s) with delegate (TfLiteQnnDelegate) node, yielding 1 partitions for the whole graph.
2024-05-14 19:55:39.668  9985-10016 tflite                  com.quicinc.imageclassification      I  Created 0 GPU delegate kernels.
2024-05-14 19:55:39.688  9985-10016 tflite                  com.quicinc.imageclassification      I  Created TensorFlow Lite XNNPACK delegate for CPU.
2024-05-14 19:55:39.688  9985-10016 tflite                  com.quicinc.imageclassification      I  Replacing 71 out of 108 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 73 partitions for the whole graph.
2024-05-14 19:55:44.612  9985-10061 ProfileInstaller        com.quicinc.imageclassification      D  Installing profile for com.quicinc.imageclassification
2024-05-14 19:56:05.279  9985-10003 System                  com.quicinc.imageclassification      W  A resource failed to call close. 
2024-05-14 19:56:05.287  9985-10003 System                  com.quicinc.imageclassification      W  A resource failed to call close. 
2024-05-14 19:56:05.287  9985-10003 System                  com.quicinc.imageclassification      W  A resource failed to call close. 

@mestrona-3 mestrona-3 added the question Further information is requested label Jan 15, 2025
@kory
Copy link

kory commented Jan 17, 2025

Can you clarify what you mean by "show the NPU failing to load"?

From this line, it looks to me like you successfully loaded the model on NPU:
2024-05-14 19:55:39.273 9985-10016 tflite com.quicinc.imageclassification I Replacing 108 out of 108 node(s) with delegate (TfLiteQnnDelegate) node, yielding 1 partitions for the whole graph.

@yuguolong
Copy link
Author

@kory I hope that the quantized model uses the HTP unit for operation, but it seems to use the cpu for operation.

2024-05-14 19:55:39.273  9985-10016 tflite                  com.quicinc.imageclassification      I  Replacing 108 out of 108 node(s) with delegate (TfLiteQnnDelegate) node, yielding 1 partitions for the whole graph.
2024-05-14 19:55:39.668  9985-10016 tflite                  com.quicinc.imageclassification      I  Created 0 GPU delegate kernels.
2024-05-14 19:55:39.688  9985-10016 tflite                  com.quicinc.imageclassification      I  Created TensorFlow Lite XNNPACK delegate for CPU.
2024-05-14 19:55:39.688  9985-10016 tflite                  com.quicinc.imageclassification      I  Replacing 71 out of 108 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 73 partitions for the whole graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants