Deploying Pre-Quantized Deep Learning Models on Heterogeneous Platforms with Operator Flow Recognition and Quantization Parameter Optimization

Kuen-Wey Lin, Yan-Ying Li, Kuan Wang, Ming-Chih Tung
{"title":"Deploying Pre-Quantized Deep Learning Models on Heterogeneous Platforms with Operator Flow Recognition and Quantization Parameter Optimization","authors":"Kuen-Wey Lin, Yan-Ying Li, Kuan Wang, Ming-Chih Tung","doi":"10.1109/ICASI57738.2023.10179562","DOIUrl":null,"url":null,"abstract":"Quantized deep learning models are suitable for the embedded devices with limited computation resource. For computation-intensive neural network operators such as convolution, heterogeneous platforms with a set of processing units of different types become common in the embedded devices. These embedded devices usually operate on fixed-point calculations; moreover, they rely on customized kernel functions to deploy deep learning models. In this paper, a flow of deploying pre-quantized deep learning models on heterogeneous platforms using TVM is presented. We propose an optimization to convert quantization parameters. To leverage customized kernel functions, we propose the operator flow recognition. To demonstrate our flow, we utilize embARC Machine Learning Inference (embARC MLI), an open-source software library targeted for low-power applications. A set of pre-quantized deep learning models are deployed on a heterogeneous platform comprising x86 and embARC MLI. Experimental results show that for each model, the accuracy obtained from the heterogeneous platform is much the same as the one obtained from an x86 platform.","PeriodicalId":281254,"journal":{"name":"2023 9th International Conference on Applied System Innovation (ICASI)","volume":"106 5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 9th International Conference on Applied System Innovation (ICASI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICASI57738.2023.10179562","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Quantized deep learning models are suitable for the embedded devices with limited computation resource. For computation-intensive neural network operators such as convolution, heterogeneous platforms with a set of processing units of different types become common in the embedded devices. These embedded devices usually operate on fixed-point calculations; moreover, they rely on customized kernel functions to deploy deep learning models. In this paper, a flow of deploying pre-quantized deep learning models on heterogeneous platforms using TVM is presented. We propose an optimization to convert quantization parameters. To leverage customized kernel functions, we propose the operator flow recognition. To demonstrate our flow, we utilize embARC Machine Learning Inference (embARC MLI), an open-source software library targeted for low-power applications. A set of pre-quantized deep learning models are deployed on a heterogeneous platform comprising x86 and embARC MLI. Experimental results show that for each model, the accuracy obtained from the heterogeneous platform is much the same as the one obtained from an x86 platform.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于算子流识别和量化参数优化的异构平台预量化深度学习模型
量化深度学习模型适用于计算资源有限的嵌入式设备。对于卷积等计算密集型神经网络算子,具有一组不同类型处理单元的异构平台在嵌入式设备中变得普遍。这些嵌入式设备通常进行定点计算;此外,它们依赖于定制的核函数来部署深度学习模型。提出了一种利用TVM在异构平台上部署预量化深度学习模型的流程。我们提出了一种量化参数转换的优化方法。为了利用自定义核函数,我们提出了算子流识别。为了演示我们的流程,我们使用了embARC机器学习推理(embARC MLI),这是一个针对低功耗应用程序的开源软件库。在包含x86和embARC MLI的异构平台上部署了一组预量化的深度学习模型。实验结果表明,对于每个模型,在异构平台上获得的精度与在x86平台上获得的精度基本相同。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Intelligent Detection of Disinformation Based on Chronological and Spatial Topologies Cluster based Indexing for Spatial Analysis on Read-only Database Straight-line Generation Approach using Deep Learning for Mobile Robot Guidance in Lettuce Fields Leveraging the Objective Intelligibility and Noise Estimation to Improve Conformer-Based MetricGAN Analysis of Eye-tracking System Based on Diffractive Waveguide
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1