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.3.tar.gz (4.1 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.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rknntools-0.0.3.tar.gz
  • Upload date:
  • Size: 4.1 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.3.tar.gz
Algorithm Hash digest
SHA256 c88b59b0468c5f97bcedebd71be034a2b8bccccc96214acc116a5bc16fefce40
MD5 b677bfd8a5c0964a8acc2535773d9bbd
BLAKE2b-256 dd472d9a4d02ddb60f232fcc248b9ca4e0099c094ba525c563c00754ee8da30f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rknntools-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b26529c8ba2ecb688b72d4f74d3864d1ad21fad39350438c13b84710b05625a1
MD5 4706a5dbf599876482bc546402616097
BLAKE2b-256 d6615be30092181cd22ea198cbe50c1d6e04958abfd2776320690c59a36bff33

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