Skip to main content

A utility toolkit for converting RKNN2 models, potentially used during the model transformation process.

Project description

rknntools

  • rknn模型转换可能会用到的工具
  • RKNNTOOLKIT2版本 >= 1.5.2

代码说明

op_limit.py 包括函数check_op_limit,输入onnx模型,输出算子匹配情况

其他说明

  • 目前算子已经匹配实例中的模型,以及conformer、zipformer等,后续可能有补充
  • 目前依赖onnx库,测试1.13.1可行

TODO

  • ONNX模型输入输出信息打印
  • 读取ONNX模型并初始化全0输入,保存输出至文件供精度比对
  • 修复ONNX模型的输入shape,满足rknntoolkits的要求
  • 提供PT->ONNX代码,返回其中不支持算子在代码中的具体位置

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rknntools-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rknntools-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rknntools-0.0.2.tar.gz.

File metadata

  • Download URL: rknntools-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rknntools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cecf4ab02f6e2960989304a498f51cd9def7574394f8e1ae46d86746128e7a9e
MD5 e85721dba3a3bf9fa10a2958f23518f1
BLAKE2b-256 da27cb4226e1687eb2eb4119f5c56bc0d184d339f839ae248dd52c3102f99d7f

See more details on using hashes here.

File details

Details for the file rknntools-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rknntools-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rknntools-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a2c5147bdf3e21bd7612662e7edd67f1db7ec151982370cb0d7b447594b0b0d
MD5 37cc1b2548ee8f66929509f9c3fcc900
BLAKE2b-256 a97424038a42a628ffca89c1d7c7d329558a417c42e74aaa9b43b4d1dbbc373e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page