Skip to main content

rknn-inspect

CLI tool for inspecting RKNN models.

rknn-inspect is a command-line utility for inspecting and profiling Rockchip RKNN models. It helps developers understand model structure, input/output shapes and formats, SDK version info, and performance metrics. Useful during model development, conversion, and deployment on Rockchip NPUs.

Usage

rknn-inspect --help
Usage: rknn-inspect [OPTIONS] <MODEL_PATH>

Arguments:
  <MODEL_PATH>  Path to the model file

Options:
      --lib-index <LIB_INDEX>  Which library path to use [default: 0]
  -i, --io                     Show inputs and outputs
  -n, --native-io              Show native input/output information
      --native-nhwc-io         Show native input/output information in NHWC format
      --native-nc1hwc2-io      Show native input/output information in NC1HWC2 format
  -p, --perf                   Enable performance profiling
  -s, --sdk                    Show SDK information
      --npu-cores <NPU_CORES>  Select NPU cores to use [default: auto] [possible values: core0, core1, core2, core-all, core0-1, core0-1-2, auto]
      --markdown               Output in Markdown format
      --full-name              Show full name of the op in the --perf output
  -h, --help                   Print help

Installation

pipx install rknn-inspect

Extended Usage

View the input/output names, shapes, data types, and formats

rknn-inspect --io model.rknn

View Performance Metrics

rknn-inspect --perf model.rknn

View Performance Metrics for Specific NPU Core/s

rknn-inspect --npu-cores core0 --perf model.rknn

Metadata

Release files for rknn-inspect 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rknn-inspect 0.3.0
File Size Uploaded
rknn_inspect-0.3.0.tar.gz 14.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rknn-inspect 0.3.0
File Interpreter ABI Platform
rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details

Total release size: 1.2 MB

Release files / rknn_inspect-0.3.0.tar.gz

Download URL rknn_inspect-0.3.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c533706ac5080062dae1775db14caa46ee8f92c5dc17b7bae7a7d02ff48c4166
BLAKE2b-256 checksum
How to use checksums
0f2092a3b557a734e378d15542b474111615d5df6f31f88b6eefb9483d0e7df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl

Download URL rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl
Size 616.3 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ed405949e357b187ca3c2d2b3d023522b1e40418061ca337e747a3af3f5b1239
BLAKE2b-256 checksum
How to use checksums
d8cdd7b9226b846855fcb8431fef01dae0d32ed73623cd6ef02bd2a976ad13fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 574.0 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
35f9483fa4e5ed422dca4a8b90e64ae226b40a649fee80e3df9811c0335e1152
BLAKE2b-256 checksum
How to use checksums
cbc8ba01059d5855cea78ccc70681ba25acb2658308116d09cac8df16200ba42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release history Release notifications | RSS feed

This release

0.3.0 This release

3 release files

0.2.0

3 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page