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

大佬好 ,我用arm调试TNN,我的目的是开启多线程并行调试 #1985

Closed tiansiyu123 closed 4 months ago

tiansiyu123 commented 4 months ago

https://github.com/Tencent/TNN/blob/1c27f2000539870cbbc21f43e7978580f08f1685/source/tnn/core/default_network.cc#L683

我发现这个OnInstanceForwardBegin 函数内部最终调用了OMP库的omp_set_num_threads函数,但是却没有用到#pragma omp 类似的多线程指令 ,想问下这里是如何实现的呢?