-
公开(公告)号:US20240264814A1
公开(公告)日:2024-08-08
申请号:US18636063
申请日:2024-04-15
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Jiazhen Xuan , Jian Yuan
IPC: G06F8/51
CPC classification number: G06F8/51
Abstract: A language interoperation method and apparatus, a storage medium, and a program product are provided. The method includes: obtaining code in a first language and code in a plurality of second languages (S1); generating a unified abstract representation of interoperation boundary information of the plurality of second languages based on the code in the plurality of second languages (S2), where the unified abstract representation is binary code of the interoperation boundary information of the plurality of second languages, and the interoperation boundary information of the plurality of second languages represents constituent elements allowing mutual access or use with the first language among constituent elements of the plurality of second languages; and compiling the code in the first language based on the unified abstract representation, to obtain and output binary code of the code in the first language (S3).
-
公开(公告)号:US20230350676A1
公开(公告)日:2023-11-02
申请号:US18350907
申请日:2023-07-12
Applicant: Huawei Technologies Co., Ltd.
CPC classification number: G06F9/30036 , G06F9/3836
Abstract: A tensor processing method by a first processor includes obtaining a plurality of first tensors; copying the plurality of first tensors into a second tensor, wherein the plurality of first tensors included in the second tensor occupy consecutive spaces in the second tensor; receiving a first processing instruction from a second processor, wherein the first processing instruction includes a first identifier that indicates the second tensor and a first processing identifier that indicates a first processing operation; and processing the second tensor based on the first processing operation.
-