Metadata-Version: 2.1
Name: rknntools
Version: 0.0.3
Summary: A utility toolkit for converting RKNN2 models, potentially used during the model transformation process.
Author-email: yuyun <15515722313@163.com>
License: MIT License
        
        Copyright (c) [year] [fullname]
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/yuyun2000
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: onnx>=1.13.1

# 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代码，返回其中不支持算子在代码中的具体位置
