RepoPilot

Tencent/ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform

Mixed

Evidence incomplete — review before adopting

MixedDependency

license evidence incomplete; dependency CVE scan unavailable

MixedFork & modify

license evidence incomplete

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

license evidence incomplete; dependency CVE scan unavailable

  • Concentrated ownership — top contributor handles 59% of recent commits
  • Could not verify license from the available repository evidence
  • Last commit today
  • 18 active contributors
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: Tencent/ncnn

Generated by RepoPilot · document generated 2026-09-13 · concise human review Evidence snapshot · analyzed 2026-09-13T19:33:58.072Z · commit 8775d9c80d30

Verdict

Mixed — Evidence incomplete — review before adopting

  • Last commit today
  • 18 active contributors
  • CI configured
  • Tests present

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

What it is

ncnn is a high-performance neural network inference framework optimized for mobile CPUs, with zero third-party dependencies and cross-platform support (Android, iOS, Linux ARM/x86, WebAssembly, RISC-V). It enables efficient deployment of deep learning models on edge devices, currently powering Tencent's QQ, WeChat, and other production applications. Monolithic but modular: core inference engine in src/net.cpp and src/layer.cpp, platform-specific optimizations in src/arm/, src/x86/, src/vulkan/; tools/pnnx/ handles model conversion from PyTorch/ONNX; benchmarks and unit tests in examples/; CMake-based build system with per-platform CI in .github/workflows/.

Start here

Open these first:

  • CMakeLists.txt — Root build configuration defining the entire ncnn compilation process, platform targets, and dependency management across…
  • src/layer.h — Core abstract layer class that every neural network operation inherits from; fundamental to understanding ncnn's plugin…
  • src/net.h — Network class responsible for loading, parsing, and executing .param/.bin model files; the primary inference engine entry…
  • src/mat.h — Tensor/matrix data structure used throughout ncnn for all tensor operations; understanding memory layout is critical for…
  • tools/pnnx — PyTorch model converter toolchain that transforms PyTorch ONNX models to ncnn format; essential for model deployment workflow

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

Clone the repository: git clone https://github.com/Tencent/ncnn.git && cd ncnn. Build for your platform using CMake: mkdir build && cd build && cmake .. && make -j4. For Android: follow .github/workflows/android.yml…

Daily commands:

Run inference example: ./examples/squeezenet (after build). Benchmark: ./benchmark/benchncnn. Android: build APK following .github/workflows/android.yml. Python: `import ncnn; net = ncnn.Net(); net.load_param('model…

…shortened for this brief.

Key cautions & unknowns

  • Concentrated ownership — top contributor handles 59% of recent commits
  • Could not verify license from the available repository evidence
  • Platform-specific gotchas: ARM NEON intrinsics require -mfpu=neon or equivalent flags (handled in CMake but easy to miss in custom builds). Vulkan requires appropriate SDK and device support; fallback to CPU is not…
  • License evidence is incomplete or ambiguous.
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Great to learn from" badge

Paste into your README — live-updates from the latest cached analysis.

RepoPilot: Great to learn from
[![RepoPilot: Great to learn from](https://repopilot.app/api/badge/tencent/ncnn?axis=learn)](https://repopilot.app/r/tencent/ncnn)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/tencent/ncnn on X, Slack, or LinkedIn.

Ask AI about tencent/ncnn

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/tencent/ncnn"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>