Skip to content

错误码

neiltian edited this page Dec 9, 2020 · 8 revisions

Status调用description()接口可获取更多错误信息描述。

常见错误码介绍

0x1002(4098): 模型解析错误。检查确保ModelConfig配置的为文件内容而非文件路径。

0x6005(24581): 模型weights信息缺失。TNN的benchmark可以只用proto文件,是因为开启了TNN_BENCHMARK_MODE,weights自动生成,仅用来评估速度。

0x2000(8192): 错误信息not support model type。检查Android静态库集成链接需添加-Wl,--whole-archive tnn -Wl,--no-whole-archive,iOS库集成链接需要添加force_load。

0x9000(36864): device type类型不支持。(1)确保相关device type编译选项已开启 (2)Android静态库集成链接需添加-Wl,--whole-archive tnn -Wl,--no-whole-archive,iOS库集成链接需要添加force_load。

Clone this wiki locally