首页> 外国专利> METHOD FOR CONSTRUCTING INTERMEDIATE REPRESENTATION, COMPILER AND SERVER

METHOD FOR CONSTRUCTING INTERMEDIATE REPRESENTATION, COMPILER AND SERVER

机译:构建中间表示,编译器和服务器的方法

摘要

A method for constructing an intermediate representation (IR), the method comprising: acquiring a first IR, the first IR comprising a calculation statement, and the calculation statement comprising a tensor and an operator, wherein an operation represented by the operator is executed on the basis of a calculation unit, the calculation unit is used to perform operations on data that is migrated sequentially through a first storage location and a second storage location, and the tensor is data used to execute the operation represented by the operator (201); and generating a second IR on the basis of the calculation statement, wherein the second IR comprises first data migration information and data segmentation information, the first data migration information indicates that a first migration path of the tensor comprises from the first storage location to the second storage location, and the data segmentation information indicates the size of the tensor when the tensor migrates to the second storage location (202). The described method may construct an IR that is able to represent the migration of a tensor between different storage locations.
机译:一种用于构造中间表示(IR)的方法,该方法包括:获取第一IR,第一IR包括计算语句,以及包括Tensor和操作员的计算语句,其中由操作员表示的操作被执行计算单元的基础,计算单元用于对通过第一存储位置顺序迁移的数据执行操作,并且张量是用于执行操作员(201)表示的操作的数据;并在计算语句的基础上生成第二IR,其中第二IR包括第一数据迁移信息和数据分段信息,第一数据迁移信息指示张量的第一迁移路径包括从第一存储位置到第二个存储位置,并且数据分段信息表示张量迁移到第二存储位置时张量的大小(202)。所描述的方法可以构造能够表示不同存储位置之间的张量的迁移的IR。

著录项

  • 公开/公告号WO2021052391A1

    专利类型

  • 公开/公告日2021-03-25

    原文格式PDF

  • 申请/专利权人 HUAWEI TECHNOLOGIES CO. LTD.;

    申请/专利号WO2020CN115759

  • 发明设计人 GENG ZHEN;DI PENG;DAN XIAOQIANG;

    申请日2020-09-17

  • 分类号G06F8/41;

  • 国家 CN

  • 入库时间 2022-08-24 17:57:04

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号