当前位置:网站首页>The reason why the ncnn converted model on raspberry pie 4B always crashes when called
The reason why the ncnn converted model on raspberry pie 4B always crashes when called
2022-07-05 20:56:00 【Arnold-FY-Chen】
Recently I got a raspberry pie 4B Do experiments with your board , Compile ncnn after , Convert the model into bin and param When calling after a file, it is always because Segment Fault collapse , Compiled debug Version of ncnn After use gdb Check it out , I found that I always collapsed in convolution_3x3.h in :
#0 0x000dccb0 in ncnn::_ZN4ncnnL14conv3x3s1_neonERKNS_3MatERS0_S2_S2_RKNS_6OptionE._omp_fn.13(void) () at /root/ncnn/src/layer/arm/convolution_3x3.h:423
#1 0xb6eabc64 in ?? () from /usr/lib/arm-linux-gnueabihf/libgomp.so.1
The code at the crash is :
sum0 += r0[0] * k0[0];
r0 It is the present. layer Input characteristic data ,k0 Convolution kernel data , There is no apparent problem , Then I checked from the beginning , I found that the board burned 32 A system of (armv7l), No 64 position (aarch64) Of , So compile ncnn Pay attention to add
-DCMAKE_TOOLCHAIN_FILE=../toolchains/pi3.toolchain.cmake
This option , Otherwise, the converted model will crash every time it is called , Recompile with this option ncnn, And then use onnx2ncn The converted model can be used normally .
边栏推荐
- Duchefa cytokinin dihydrozeatin (DHZ) instructions
- 如何让化工企业的ERP库存账目更准确
- Promouvoir le développement de l'industrie culturelle et touristique par la recherche, l'apprentissage et l'enseignement pratique du tourisme
- 珍爱网微服务底层框架演进从开源组件封装到自研
- 产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
- Monorepo management methodology and dependency security
- 使用WebAssembly在浏览器端操作Excel
- Is the securities account given by the school of Finance and business safe? Can I open an account?
- ViewRootImpl和WindowManagerService笔记
- ODPs next map / reduce preparation
猜你喜欢
随机推荐
Abnova丨DNA 标记高质量控制测试方案
Mode - "Richter replacement principle"
中国的软件公司为什么做不出产品?00后抛弃互联网;B站开源的高性能API网关组件|码农周刊VIP会员专属邮件周报 Vol.097
Is it safe to open a stock account by mobile phone? My home is relatively remote. Is there a better way to open an account?
Duchefa丨P1001植物琼脂中英文说明书
ODPS 下一个map / reduce 准备
教你自己训练的pytorch模型转caffe(二)
研學旅遊實踐教育的開展助力文旅產業發展
Chemical properties and application instructions of prosci Lag3 antibody
线程池的使用
Phpstudy Xiaopi's MySQL Click to start and quickly flash back. It has been solved
木板ISO 5660-1 热量释放速率摸底测试
Monorepo management methodology and dependency security
Duchefa p1001 plant agar Chinese and English instructions
Duchefa low melting point agarose PPC Chinese and English instructions
树莓派4B上ncnn转换出来的模型调用时总是崩溃(Segment Fault)的原因
科普|英语不好对NPDP考试有影响吗 ?
Careercup its 1.8 serial shift includes problems
Write an interface based on flask
示波器探头对信号源阻抗的影响