MindSpore provides a deep learning framework for training and inference across mobile, edge, and cloud scenarios.
TNN
Uniform deep learning inference framework for mobile, desktop and server.

About TNN
TNN, developed by Tencent Youtu Lab and Guangying Lab, is a neural network inference framework for mobile, desktop and server use. Deployment follows three steps: convert a trained model to TNN format, compile the engine for the target hardware, and call the engine from an application for inference.
It describes conversion support for TensorFlow, PyTorch and Caffe models, and engine builds for ARM, OpenCL, Metal, NPU, X86 and CUDA. The repository includes examples for face detection, face alignment, hair segmentation, pose estimation, object detection and Chinese OCR.
Key features
- Converts TensorFlow, PyTorch, and Caffe models to TNN format
- Builds target-specific engines for ARM, OpenCL, Metal, NPU, X86, CUDA
- Includes face detection example using BlazeFace
- Includes Chinese OCR example for tilted, rotated, and vertical text
- Includes object detection examples for YOLOv5s and MobileNetV2-SSD
- Supports model compression and code pruning
- Covers mobile, desktop, and server deployment targets
- Supports multiple hardware backends including ARM, NPU, X86, and CUDA
- Provides conversion tools and examples for vision and OCR tasks
TNN at a glance
- Website
- github.com/Tencent/TNN
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
TNN alternatives
Tools and sites you could use instead, ranked by how closely they match.
NVIDIA Triton Inference Server provides an inference solution for deploying models in cloud and edge environments.
For Apple Silicon, Rapid-MLX offers an open-source LLM inference server and Mac app compatible with OpenAI and Anthropic APIs.
BitNet provides an inference framework for one-bit large language models.
GraphPipe provides a protocol and software for deploying machine learning models separately from their frameworks.
Popular in Model Serving & Inference
Well-known listings from the same topic.
TNN FAQ
What steps are needed to use TNN with a trained model?
Which training frameworks are mentioned for model conversion?
Which acceleration options are mentioned for compiling TNN?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.











