【Atlas200DK使用FAQ】模型转换时出现dev memory malloc error的错误

举报
山人_mhc 发表于 2020/03/25 22:52:30 2020/03/25
【摘要】 Atlas200DK使用FAQ

离线模型转换案例

 

问题描述:

用户在进行faster rcnn_vgg16和ssd的模型转换时(使用的github中的原始模型文件),打印日志如下:

[INFO] FMK:2019-09-12-04:53:55.031.016 BuildModelDef:framework/domi/omg/../omg/model/model_builder.cpp:2464:"weight_offset_: 123655680" 
[INFO] FMK:2019-09-12-04:53:55.031.048 BuildModelDef:framework/domi/omg/../omg/model/model_builder.cpp:2466:"Set event num: 0." 
[INFO] FMK:2019-09-12-04:53:55.031.099 SyncInputOutputInfoToOriginalGraph:framework/domi/omg/../omg/model/model_builder.cpp:2522:"Start to sync input&output memory info to original graph" 
[INFO] FMK:2019-09-12-04:53:55.111.235 SyncInputOutputInfoToOriginalGraph:framework/domi/omg/../omg/model/model_builder.cpp:2558:"Call Fusion Engine success, but there is no fusion op" 
[INFO] FMK:2019-09-12-04:53:55.111.584 SyncWorkspaceInfoToOriginalGraph:framework/domi/omg/../omg/model/model_builder.cpp:2595:"Start to sync workspace memory info to original graph" 
[INFO] FMK:2019-09-12-04:53:55.114.182 SyncWorkspaceInfoToOriginalGraph:framework/domi/omg/../omg/model/model_builder.cpp:2630:"Call Fusion Engine success, but there is no fusion op" 
[INFO] FMK:2019-09-12-04:53:55.117.116 GetModelTask:framework/domi/omg/../omg/model/model_builder.cpp:3195:"Begin to GetModelTask..." 
[INFO] FMK:2019-09-12-04:53:55.117.454 GetTaskInfo:framework/domi/omg/../omg/model/task_generator.cpp:100:"Begin to Get TaskInfo." 
[INFO] FMK:2019-09-12-04:53:55.224.966 LoadCustomAiCpuSo:framework/domi/omg/../omg/model/task_generator.cpp:304:"no aicpu so in model! Check result false, status: 0x0 " 
[INFO] RUNTIME:2019-09-12-04:53:55.379.772 69671 runtime/feature/src/logger.cc:236 DevMalloc:dev memory alloc, size = 545656832, type = 1 
[ERROR] RUNTIME:2019-09-12-04:53:55.522.058 69671 runtime/feature/src/logger.cc:240 DevMalloc:dev memory alloc error, errno = 2 
[ERROR] FMK:2019-09-12-04:53:55.522.553 GetTaskInfo:framework/domi/omg/../omg/model/task_generator.cpp:116:"Call rt api failed, ret: 0x2" 
[ERROR] FMK:2019-09-12-04:53:55.653.618 GetModelTask:framework/domi/omg/../omg/model/model_builder.cpp:3204:"GetTaskInfo Failed!" 
[ERROR] FMK:2019-09-12-04:53:55.745.584 FuseGraphAndGetTaskInfo:framework/domi/omg/../omg/model/model_builder.cpp:3860:"Get model task data failed!" 
[ERROR] FMK:2019-09-12-04:53:55.847.029 Generate:framework/domi/omg/omg.cpp:819:"OMG builder FuseGraphAndGetTaskInfo() return fail." 
[ERROR] FMK:2019-09-12-04:53:56.772.128 main:framework/domi/omg_main/main.cpp:791:"OMG Generate execute failed!!" 
OMG generate offline model failed. Please see the log or pre-checking report for more details.

 

解决方法:

用户使用的虚拟机内存为2G,首先怀疑为虚拟机的内存问题,因为Mind Studio依赖的环境内存大于等于4G。

1. 首先使用小模型文件进行转换,例如使用人脸检测模型(人脸检测模型文件大小为10M,fasterrcnn模型文件大小为130M)进行转换,转换成功。

2. 请用户将内存修改为4G,再次尝试fasterrcnn、SSD的模型转换,转换成功。

 

 

每日推送Ascend 310常见问题及处理方法,更多昇腾技术干货,尽在昇腾社区等你,敬请持续关注

 

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。