lancerstadium
Results
1
issues of
lancerstadium
## 目的 腾讯开源课题实战:ncnn task1 (pnnx input npy files) 提交时间:2025/8/7 提交者:江南大学-鲁天硕 ## 改动 1. 添加依赖:引入`npy.hpp`[头文件](https://github.com/llohse/libnpy.git)至`pnnx/src`项目主文件夹; 2. 添加`pnnx::Graph::bind_operand`接口:用于解析导入`.npy`文件数据,将其绑定到`pnnx_graph`的指定(名字name或索引index)`operand`上,具体数据保存在`operand.params["__data__"]`中(兼容结构体); 3. 添加张量绑定过程:在`main`函数内,`bind`于`pnnx::pass_level2`之前执行; 4. 添加参数解析解析:在`main`函数内,添加参数`input=a.npy,...`的解析过程(复用`parse_string_list`接口); ## 接口 ```c++ int Graph::bind_operand(const std::string& path, int index); ```...
tool
pnnx