首页> 外国专利> HARDWARE ENVIRONMENT-BASED DATA QUANTIZATION METHOD AND APPARATUS, AND READABLE STORAGE MEDIUM

HARDWARE ENVIRONMENT-BASED DATA QUANTIZATION METHOD AND APPARATUS, AND READABLE STORAGE MEDIUM

机译:基于硬件环境的数据量化方法和装置,以及可读存储介质

摘要

A hardware environment-based data quantization method and apparatus, and a computer readable storage medium. The method comprises: parsing a model file under the current deep learning framework to obtain intermediate calculation graph data and weight data that are irrelevant to a hardware environment, and performing intermediate calculation graph process calculation on image data in an input data set to obtain feature graph data; separately performing uniform quantization on the weight data and each layer of feature graph data according to a preset linear quantization method, and performing calculation to obtain a weight quantization factor and a feature graph quantization factor (S103); combining the weight quantization factor and the feature graph quantization factor to obtain a quantization parameter that makes hardware use shift to replace division; and finally, according to a hardware requirement, writing the quantization parameter and the quantized weight data to a bin file so as to generate quantized file data (S105). Therefore, the present invention solves the problems in the related art of quantization software package redundancy and dependency library conflict caused by supporting a plurality of deep learning frameworks.
机译:基于硬件环境的数据量化方法和装置,以及计算机可读存储介质。该方法包括:在当前深度学习框架下解析模型文件,以获得与硬件环境无关的中间计算图数据和权重数据,并对输入数据集中的图像数据执行中间计算图形处理计算以获得特征图数据;根据预设的线性量化方法单独执行对重量数据和每层特征图数据的均匀量化,并执行计算以获得权重量化因子和特征曲线量化因子(S103);组合权重量化因子和特征图量化因子来获得使硬件使用转移替换划分的量化参数;最后,根据硬件要求,将量化参数和量化权重数据写入到Bin文件中,以便生成量化文件数据(S105)。因此,本发明解决了通过支持多个深度学习框架引起的量化软件包冗余和依赖库冲突的相关领域的问题。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号