首页> 外国专利> CNN CNN METHOD AND DEVICE FOR TRANSFORMING CNN LAYERS TO OPTIMIZE CNN PARAMETER QUANTIZATION TO BE USED FOR MOBILE DEVICES OR COMPACT NETWORKS WITH HIGH PRECISION VIA HARDWARE OPTIMIZATION

CNN CNN METHOD AND DEVICE FOR TRANSFORMING CNN LAYERS TO OPTIMIZE CNN PARAMETER QUANTIZATION TO BE USED FOR MOBILE DEVICES OR COMPACT NETWORKS WITH HIGH PRECISION VIA HARDWARE OPTIMIZATION

机译:CNN CNN变换CNN层的方法和装置,可通过硬件优化来优化用于高精度移动设备或紧凑型网络的CNN参数量化

摘要

The present invention provides a method for transforming a convolutional layer of a CNN including m convolutional blocks, (a) when an input image to be used by a computing device to determine a scaling parameter is obtained, (i) included in a kth convolutional block At least one kth initial weight of the kth initial convolutional layer, (ii) if (ii-1) k is 1, the input image, (ii-2) when k is from 2 to m, k(k−) 1) If the (k-1) feature map and (iii) (iii-1) k are 1, corresponding to the input image, output from the convolution block, corresponding to each channel included in the input image Each of the k-th scaling parameters and (iii-2) k is from 2 to m, one or more of the k-th scaling parameters corresponding to each of the channels included in the (k-1) characteristic map, Generating a kth quantization loss value-k is an integer from 1 to m-; (b) each of the kth optimal scaling parameters corresponding to each of the channels included in the (k-1)th feature map among the kth scaling parameters with reference to the kth quantization loss value by the computing device; Determining; (c) the computing device generating a kth scaling layer and a kth inverse scaling layer with reference to the kth optimal scaling parameter; (d) the computing device converts the kth initial convolutional layer to a kth convolutional convolutional layer using (i) kth scaling layer when k is 1, and (ii) k is 2 In the case of an integer up to m, using the kth scaling layer and the (k-1) inverse scaling layer, converting the kth initial convolution layer to the kth integrated convolution layer; It relates to a method and apparatus characterized by.
机译:本发明提供了一种用于变换包括m个卷积块的CNN的卷积层的方法,(a)当获得要由计算设备用来确定缩放参数的输入图像时,(i)包括在第k个卷积块中第k个初始卷积层的至少第k个初始权重,(ii)如果(ii-1)k为1,则输入图像,(ii-2)当k从2到m时,k(k-)1)如果(k-1)特征图和(iii)(iii-1)k为1,对应于输入图像,则从卷积块输出,对应于输入图像中包含的每个通道,第k个缩放参数和(iii-2)k是从2到m,第k个缩放参数中的一个或多个与(k-1)特征图中包含的每个通道相对应,生成第k个量化损失值k是从1到m-的整数; (b)计算装置参照第k个量化损失值,与第k个缩放参数中的第(k-1)个特征图中包括的每个信道相对应的第k个最佳缩放参数;决定; (c)计算装置参照第k个最佳缩放参数生成第k个缩放层和第k个逆缩放层; (d)计算设备将第k个初始卷积层转换为第(k)个卷积层,方法是:(i)当k为1时的第k个缩放层,并且(ii)k为2。在不超过m的整数的情况下,使用第k个缩放层和(k-1)个逆缩放层,将第k个初始卷积层转换为第k个集成卷积层;本发明涉及一种方法和装置,其特征在于。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号