首页> 外国专利> DEEP LEARNING MODEL GENERATION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM

DEEP LEARNING MODEL GENERATION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM

机译:深度学习模型生成方法和设备,设备和存储介质

摘要

Embodiments of the present application relate to the field of deep learning. Disclosed are a deep learning model generation method and apparatus, a device, and a storage medium. The method comprises: generating a first source file according to a model file of a deep learning model, the model file comprising a weight matrix in the deep learning model; obtaining a second source file corresponding to the deep learning model; and compiling the first source file and the second source file to generate a target file corresponding to the deep learning model. The method provided in the embodiments of the present application is used, and the first source file is generated in advance according to the weight matrix in the deep learning model, so that in a compiling process, the first source file and the second source file corresponding to a neural network structure are compiled to generate the target file corresponding to the deep learning model, data loading of the weight matrix can be completed in the compiling stage of the deep learning model, and the weight matrix is not required to be reloaded in the subsequent model reasoning process, thereby improving the reasoning efficiency of the deep learning model.
机译:本申请的实施例涉及深度学习领域。公开了一种深度学习模型生成方法和装置,设备和存储介质。该方法包括:根据深度学习模型的模型文件生成第一源文件,该模型文件包括深度学习模型中的权重矩阵;获取对应于深度学习模型的第二源文件;并编译第一源文件和第二源文件以生成与深度学习模型对应的目标文件。使用在本申请的实施例中提供的方法,并且根据深度学习模型中的权重矩阵预先生成第一源文件,使得在编译过程中,第一源文件和第二源文件对应编译到神经网络结构以生成对应于深度学习模型的目标文件,可以在深度学习模型的编译阶段完成权重矩阵的数据加载,并且不需要重新矩阵被重新加载随后的模型推理过程,从而提高了深度学习模型的推理效率。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号