Tencent / TNN

TNN: developed by Tencent Youtu Lab and Guangying Lab, a uniform deep learning inference framework for mobile、desktop and server. TNN is distinguished by several outstanding features, including its cross-platform capability, high performance, model compression and code pruning. Based on ncnn and Rapidnet, TNN further strengthens the support and performance optimization for mobile devices, and also draws on the advantages of good extensibility and high performance from existed open source efforts. TNN has been deployed in multiple Apps from Tencent, such as Mobile QQ, Weishi, Pitu, etc. Contributions are welcome to work in collaborative with us and make TNN a better framework.
Other
4.37k stars 765 forks source link

android target升级到31、33 后(target30及以下gpu正常),无法使用gpu模式。cpu 模式使用正常。 compileSdkVersion 33 buildToolsVersion "30.0.3" ndkVersion '20.1.5948944' defaultConfig { minSdkVersion 15 targetSdkVersion 33 机型:红米note12T、k60 #1955

Open cq186 opened 12 months ago

cq186 commented 12 months ago

1. 环境(environment)

image

image Paste screenshorts here or pastebin

paulwgw88 commented 10 months ago

AndroidManifest.xml里面添加 <uses-native-library android:name="libOpenCL.so" android:required="false" />

https://developer.android.google.cn/guide/topics/manifest/uses-native-library-element?hl=zh-cn