Min-Zhi Ji, Wei-Chung Tseng, Ting Wu, Bo-Rong Lin, C. Chen
{"title":"Micro Darknet For Inference: ESL reference for inference accelerator design","authors":"Min-Zhi Ji, Wei-Chung Tseng, Ting Wu, Bo-Rong Lin, C. Chen","doi":"10.1109/isocc47750.2019.9027644","DOIUrl":null,"url":null,"abstract":"For neural network (NN) models applying to low-end edge devices, the memory management is a very important issue because of the limitation of hardware resources. However, current NN frameworks typically allocate a huge memory space for NN models in the initial stage. To reduce memory requirements, we propose a lite NN inference-only framework, MDFI (Micro Darknet for Inference) based on Darknet. We optimize the MDFI C code by a layer-wise memory management and layer-dependency resolving mechanism. According to the experimental results, the average memory consumption of MDFI has 76% reduction compared to Darknet, and the average execution time of MDFI has 8% reduction also.","PeriodicalId":113802,"journal":{"name":"2019 International SoC Design Conference (ISOCC)","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 International SoC Design Conference (ISOCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/isocc47750.2019.9027644","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
For neural network (NN) models applying to low-end edge devices, the memory management is a very important issue because of the limitation of hardware resources. However, current NN frameworks typically allocate a huge memory space for NN models in the initial stage. To reduce memory requirements, we propose a lite NN inference-only framework, MDFI (Micro Darknet for Inference) based on Darknet. We optimize the MDFI C code by a layer-wise memory management and layer-dependency resolving mechanism. According to the experimental results, the average memory consumption of MDFI has 76% reduction compared to Darknet, and the average execution time of MDFI has 8% reduction also.
对于应用于低端边缘设备的神经网络模型,由于硬件资源的限制,内存管理是一个非常重要的问题。然而,当前的神经网络框架通常在初始阶段为神经网络模型分配巨大的内存空间。为了减少内存需求,我们提出了一个基于Darknet的精简神经网络推理框架MDFI (Micro Darknet for Inference)。我们通过分层内存管理和分层依赖解析机制来优化MDFI代码。实验结果表明,MDFI的平均内存消耗比Darknet减少了76%,MDFI的平均执行时间也减少了8%。