pytorch / android-demo-app

PyTorch android examples of usage in applications
1.47k stars 606 forks source link

Android: couldn't find DSO to load: libtorch-code-gen.so #142

Open duwangthefirst opened 3 years ago

duwangthefirst commented 3 years ago

I'm running a custom object detection model on XiaoMi 11, and in Logcat it says "couldn't find DSO to load: libtorch-code-gen.so".

and the model runs well in other android devices like XiaoMi 11 Ultra and Huawei P40 pro.

and I'm using the following dependency:

    // PyTorch
    implementation 'org.pytorch:pytorch_android:1.8.0'
    implementation 'org.pytorch:pytorch_android_torchvision:1.8.0'
erksch commented 3 years ago

Wondering the same thing, we always just ignored it.