US 11,983,086 B2
Method for processing data, and electronic device, storage medium and program product
Haifeng Wang, Beijing (CN); Xiaoguang Hu, Beijing (CN); Dianhai Yu, Beijing (CN); Xiang Lan, Beijing (CN); and Yanjun Ma, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Nov. 17, 2022, as Appl. No. 17/989,644.
Claims priority of application No. 202111659099.2 (CN), filed on Dec. 31, 2021.
Prior Publication US 2023/0115163 A1, Apr. 13, 2023
Int. Cl. G06F 11/34 (2006.01); G06N 3/063 (2023.01)
CPC G06F 11/3409 (2013.01) [G06N 3/063 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method for processing data, comprising:
obtaining first attribute information of input data and second attribute information of a computing device corresponding to the input data;
selecting a target operator implementation mode from a plurality of candidate operator implementation modes based on the first attribute information and the second attribute information;
determining a plurality of sub-operators included in an operator required for the input data from an operator library based on the target operator implementation mode, to generate the operator; and
obtaining an operation result by performing an operation on the input data by the computing device based on the operator,
wherein selecting the target operator implementation mode from the plurality of candidate operator implementation modes based on the first attribute information and the second attribute information, comprises:
performing a performance evaluation on the candidate operator implementation mode based on the first attribute information and the second attribute information, to obtain a corresponding performance evaluation result; and
selecting the target operator implementation mode from the plurality of candidate operator implementation modes based on the performance evaluation result,
wherein performing the performance evaluation on the candidate operator implementation mode based on the first attribute information and the second attribute information, to obtain the corresponding performance evaluation result, comprises:
obtaining historical performance evaluation results corresponding to the candidate operator implementation mode of the operator; and
selecting a target performance evaluation result from the historical performance evaluation results as the performance evaluation result based on the first attribute information and the second attribute information.