CPC G06F 11/3409 (2013.01) [G06N 3/063 (2013.01)] | 18 Claims |
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.
|