首页> 外国专利> METHOD FOR DATA COMPUTATION IN NEURAL NETWORK MODEL, IMAGE PROCESSING METHOD, AND DEVICE

METHOD FOR DATA COMPUTATION IN NEURAL NETWORK MODEL, IMAGE PROCESSING METHOD, AND DEVICE

机译:神经网络模型中数据计算的方法,图像处理方法和设备

摘要

A method for data computation in a neural network model, an image processing method, and a device. The method comprises: reading weight data shared by a set of data computation operations in a data processing layer in a neural network model into a group-shared variable of a thread group of a graphics processor (GPU); dividing input data of the data processing layer on the basis of the number of threads in the thread group; reading, for each set of the divided input data and from the group-shared variable, corresponding weight data of one data processing operation of a set of data processing operations to be performed on the set of input data; and each thread in the thread group performing the data processing operation by using a set of read input data and the corresponding weight data for said set of input data to obtain a computation result corresponding to said set of input data. For input data corresponding to the same thread group, corresponding weight data does not need to be read for each piece of the input data, thereby reducing the number of weight data read operations.
机译:神经网络模型中的数据计算方法,图像处理方法和设备。该方法包括:读取由神经网络模型中的数据处理层中的一组数据计算操作共享的权重数据,进入图形处理器(GPU)的线程组的群组共享变量;基于线程组中的线程数分割数据处理层的输入数据;读取,对于每组分割输入数据和来自组共享变量,对应于一组数据处理操作的一个数据处理操作的对应权重数据来执行在一组输入数据上;并且通过使用一组读取输入数据和用于所述输入数据集的相应权重数据来执行数据处理操作的每个线程,以获得与所述一组输入数据相对应的计算结果。对于对应于相同线程组的输入数据,不需要对每个输入数据读取对应的权重数据,从而减少重量数据读取操作的数量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号