{"data":{"slug":"tencent-tnn","name":"TNN","tagline":"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 cr","github_url":"https://github.com/Tencent/TNN","owner":"Tencent","repo":"TNN","owner_avatar_url":"https://avatars.githubusercontent.com/u/18461506?v=4","primary_language":"C++","stars":4640,"forks":773,"topics":["coreml","deep-learning","face-detection","hairsegmentaion","inference","mnn","ncnn","ocr","openvino","pytorch","tengine","tensorflow","tensorrt"],"archived":false,"github_pushed_at":"2025-05-09T07:33:14+00:00","maintenance_label":"Dormant","url":"https://www.graphcanon.com/tools/tencent-tnn","markdown_url":"https://www.graphcanon.com/tools/tencent-tnn.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/tencent-tnn","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=tencent-tnn","description":"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. ","homepage_url":null,"license":"Other","open_issues":318,"watchers":90,"ai_summary":null,"readme_excerpt":"## Quick Start\n\nIt is very simple to use TNN. If you have a trained model, the model can be deployed on the target platform through three steps.\n1. Convert the trained model into a TNN model. We provide a wealth of tools to help you complete this step, whether you are using Tensorflow, Pytorch, or Caffe, you can easily complete the conversion.\nDetailed hands-on tutorials can be found here [How to Create a TNN Model](doc/en/user/convert_en.md).\n\n2. When you have finished converting the model, the second step is to compile the TNN engine of the target platform. You can choose among different acceleration solutions such as ARM/OpenCL/Metal/NPU/X86/CUDA according to the hardware support.\n   For these platforms, TNN provides convenient one-click scripts to compile. For detailed steps, please refer to [How to Compile TNN](doc/en/user/compile_en.md).\n\n3. The final step is to use the compiled TNN engine for inference. You can make program calls to TNN inside your application. We provide a rich and detailed demo as a reference to help you complete.\n    * [Run an iOS Demo](doc/en/user/demo_en.md#i-introduction-to-ios-demo)\n    * [Run an Android Demo](doc/en/user/demo_en.md#ii-introduction-to-android-demo)\n    * [Run an Linux/Windows Demo](doc/en/user/demo_en.md#iii-introduction-to-linuxmacwindowsarmlinuxcudalinux-demo)","github_created_at":"2020-05-29T07:20:28+00:00","created_at":"2026-07-11T23:37:48.253628+00:00","updated_at":"2026-07-11T23:37:52.163414+00:00","categories":[{"slug":"model-training","name":"Model Training","url":"https://www.graphcanon.com/categories/model-training","markdown_url":"https://www.graphcanon.com/categories/model-training.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/model-training"},{"slug":"computer-vision","name":"Computer Vision","url":"https://www.graphcanon.com/categories/computer-vision","markdown_url":"https://www.graphcanon.com/categories/computer-vision.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/computer-vision"},{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"}],"tags":[{"slug":"deep-learning","name":"deep-learning"},{"slug":"ncnn","name":"ncnn"},{"slug":"face-detection","name":"face-detection"},{"slug":"mnn","name":"mnn"},{"slug":"ocr","name":"ocr"},{"slug":"coreml","name":"coreml"},{"slug":"inference","name":"inference"},{"slug":"hairsegmentaion","name":"hairsegmentaion"}],"trust":{"provenance":{"is_fork":false,"github_id":267792621,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T23:37:49.336Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":428,"last_release_at":"2021-04-26T14:23:12Z"},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T23:37:49.676Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T23:37:49.109Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-07-11T23:37:49.109Z","managed_saas":false},"languages":{"value":["c++"],"source":"github.language","observed_at":"2026-07-11T23:37:49.109Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-07-11T23:37:49.109Z"},"license_spdx":{"value":"Other","source":"github.license","observed_at":"2026-07-11T23:37:49.109Z"}}}}