Data processing method and device, electronic equipment and storage medium

By screening and mapping operators, a computational topology diagram is constructed to automatically optimize the data processing process of the neural network model, solving the problems of computational rigidity and low development efficiency in traditional methods, and achieving efficient and accurate data processing.

CN118780400APending Publication Date: 2024-10-15BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410802878.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In neural network models, traditional model feature calculation methods lead to rigid calculations, low development efficiency, and cannot meet the growing demand for data processing.

Method used

By filtering out the required multiple operators from the public operator set, and based on the mapping relationship from formal parameters to actual parameters and the parameter dependencies between operators, a computational topology diagram of the operator set is constructed, thereby automatically constructing and optimizing data. processing flow.

Benefits of technology

It improves the reuse flexibility of operators and the design efficiency of computing topology diagrams, improves the efficiency and accuracy of data processing, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780400A_ABST
    Figure CN118780400A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of data processing, in particular to the technical field of neural networks, computing engines and the like. According to the specific implementation scheme, the method comprises the following steps: screening out a plurality of required operators from a public operator set according to the function requirements of a target object to construct an operator set; determining parameters of each operator in the operator set based on a mapping relation from the formal parameter to the actual parameter; constructing a calculation topological graph of the operator subsets based on a parameter dependency relationship among the operators; and processing data of the target task based on the calculation topological graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to technical fields such as neural networks and computing engines. Background Art

[0002] With the rapid development of big data and artificial intelligence technologies, large amounts of data can be analyzed and processed to extract useful information or process it into required data.

[0003] As demand increases, more and more operators are needed to process data, and the processing flow becomes more and more complicated. For example, when using a neural network model, model features need to be calculated by operators, and the model also requires multiple operators to be built in an orderly manner. Summary of the invention

[0004] The present disclosure provides a data processing method, device, electronic device and storage medium.

[0005] According to one aspect of the present disclosure, there is provided a data processing method, comprising:

[0006] According to the functional requirements of the target object, multiple required operators are selected from the public operator set to construct an operator set;

[0007] Based on the mapping relationship from formal parameters to actual parameters, determine the parameters of each operator in the operator set;

[0008] Based on the parameter dependency between operators, a computational topology graph of the operator set is constructed;

[0009] Process the data of the target task based on the computational topology graph.

[0010] According to another aspect of the present disclosure, there is provided a data processing device, comprising:

[0011] A screening module is used to screen out multiple required operators from a public operator set according to the functional requirements of the target object to construct an operator set;

[0012] A determination module, used to determine the parameters of each operator in the operator set based on the mapping relationship from formal parameters to actual parameters;

[0013] The construction module is used to construct the computational topology graph of the operator set based on the parameter dependencies between the operators;

[0014] The processing module is used to process the data of the target task based on the calculation topology graph.

[0015] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0019] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0020] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0023] Figure 1 is a flowchart of a data processing method according to an embodiment of the present disclosure;

[0024] Figure 2 is a schematic diagram of a process of constructing an operator set according to the functional requirements of a target object according to an embodiment of the present disclosure;

[0025] Figure 3 is a schematic diagram of a process for determining a mapping relationship between actual parameters and formal parameters based on a matching relationship according to an embodiment of the present disclosure;

[0026] Figure 4 Schematic diagram of the process of operator jump according to an embodiment of the present disclosure

[0027] Figure 5 is a schematic diagram of a process for automatically constructing an initial topology map according to an embodiment of the present disclosure;

[0028] Figure 6 It is a schematic diagram of modifying an initial topological map of a target object to obtain a calculated topological map according to an embodiment of the present disclosure;

[0029] Figure 7 is a schematic diagram of splitting a computing topology graph into multiple subgraphs according to an embodiment of the present disclosure;

[0030] Figure 8is a schematic diagram of a flow chart of data processing by each subgraph according to an embodiment of the present disclosure;

[0031] Fig. 9 is a schematic diagram of the structure of processing data for each subgraph according to an embodiment of the present disclosure;

[0032] Fig.10 is a schematic diagram of a topology service construction execution process according to an embodiment of the present disclosure;

[0033] Fig.11 is a schematic diagram of the overall framework of a computing engine according to an embodiment of the present disclosure;

[0034] Fig.12 is a structural schematic diagram of a data processing device according to an embodiment of the present disclosure;

[0035] Fig.13 It is a block diagram of an electronic device used to implement the data processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0037] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] As the complexity of data processing tasks increases, the models required for processing tasks are becoming more and more complex. Especially in neural network models, in most cases, when faced with traditional model feature calculation methods, strategy developers are left to handle them on their own, including but not limited to data parsing, topology construction and other partial functions. In this process, they often face challenges such as computational rigidity and low development efficiency, which cannot meet the growing data processing needs. In view of this, a data processing method is proposed in the embodiments of the present disclosure. Figure 1 FIG. 1 is a flow chart of a data processing method provided in an embodiment of the present disclosure, which includes the following contents:

[0039] S101, according to the functional requirements of the target object, multiple required operators are screened out from the public operator set to construct an operator set.

[0040] The public operator set is a set of predefined operators that are widely applicable to most scenarios. Based on the specific requirements of the target object, you can select the appropriate operator from it. For example, the functional requirements of the target object are image scaling, color conversion, and edge detection. Based on this requirement, the public operator set automatically searches for operators that match the functional requirements. For example, for image scaling, you can find the "Resize" operator; for color conversion, you can find the "ColorConvert" operator; for edge detection, you can find the "CannyEdgeDetector" operator. In this way, you can build an operator set based on the selected operators.

[0041] S102, determining the parameters of each operator in the operator set based on the mapping relationship from formal parameters to actual parameters.

[0042] It can be understood that in order to adapt to different scenarios, each operator has its own specific parameters (formal parameters). When using these operators, the actual values ​​(actual parameters) need to be passed to specific parameters, so that operators with the same function can be reused under different scenario requirements.

[0043] S103, constructing a computational topology graph of the operator set based on the parameter dependency relationship between the operators.

[0044] There are often dependencies between operators. For example, the output parameter of one operator may be the input parameter of another operator. A computational topology graph is constructed based on this dependency. The computational topology graph can show how operators are connected and how data flows between operators, so as to help understand and optimize the execution order and efficiency of the entire workflow.

[0045] S104, processing data of the target task based on the calculation topology graph.

[0046] Process data according to the constructed computing topology, that is, execute each operator in order according to the series and parallel relationship between operators in the computing topology, ensure that data is correctly transmitted between operators, and finally obtain accurate processing results.

[0047] In the disclosed embodiments, suitable operators can be automatically screened out based on functional requirements to achieve operator reuse. The target object does not need to repeatedly develop operators with the same function. By mapping formal parameters to actual parameters, the formal parameters of the operator can define the parameters that the operator actually needs to process according to the needs of different scenarios. This improves the flexibility of reused operators. Furthermore, based on the parameter dependencies of the operators, the computational topology graph can be automatically analyzed and constructed to improve the design efficiency of the computational topology graph and facilitate monitoring and debugging of the computational process. In addition, processing data based on the computational topology graph can improve the efficiency and accuracy of data processing and improve resource utilization.

[0048] In the embodiment of the present disclosure, according to the functional requirements of the target object, multiple operators required are screened out from the public operator set to construct an operator set, such as Figure 2 The following may be shown:

[0049] S201, matching the functional requirements of the target object with the functional description information in the public operator set.

[0050] The functional requirements of the target object, that is, to clarify what functions the target object needs to complete a specific task. These requirements may come from text information input by the target object, or from the requirements document or technical specifications of the target object. The specific source of the requirements is not limited in the embodiment of the present disclosure, and it is sufficient to be able to indicate the requirements. When the functional requirements of the target object are obtained, the operators that meet the requirements can be retrieved from the public operator set through analysis. Specifically, the implementation steps are as follows:

[0051] Step A1: Analyze the functional requirements and break them down into at least one sub-requirement.

[0052] For example, the functional requirements of the target object are deeply analyzed through the existing large model, and the functional requirements analysis is split into multiple smaller, independent and specific sub-requirements with clearer and more specific expressions.

[0053] During implementation, a large language model can be used to analyze functional requirements. Relying on the logical reasoning ability of the large language model and the knowledge background of natural language, the semantics of the functional requirements can be accurately understood. During implementation, the large language model can rewrite the functional requirements so that each sentence contains a sub-requirement, thereby breaking down different sub-requirements.

[0054] Thus, the target object can raise multiple requirements at one time, and these requirements can be used to filter out at least one operator for all requirements to speed up the efficiency of building a model for processing the target task.

[0055] Step A2, matching each sub-requirement with the functional description information in the common operator set to obtain a matching result for each sub-requirement.

[0056] The key information in the sub-requirements is extracted through the large model, and each sub-requirement is matched with the functional description information in the public operator set. For example, the operator required by each sub-requirement is found by comparing at least one of the keywords, functional specifications or semantics between the sub-requirements and the functional description information of each operator in the public operator set. Specifically, the matching degree of the sub-requirement and the functional description information can be calculated.

[0057] Step A3: based on the matching degree between the sub-requirement and the functional description information, determine the functional description information matching the functional requirement.

[0058] During implementation, for each sub-requirement, there may be one or more operators that match it, but the degree of matching may vary.

[0059] In addition, the same operator may match multiple sub-demands. When there are multiple operators that match multiple sub-demands respectively, operators that match more sub-demands are preferentially screened.

[0060] In specific implementation, the functional description information of the operator may include the operator's functional coverage, performance, interface compatibility, hardware resource requirements, complexity, fault tolerance, parameter description, etc.

[0061] Usually, operators with a high degree of matching are selected to ensure that the final set of operators can meet the functional requirements as comprehensively as possible, while ensuring that the implementation of each sub-requirement is efficient.

[0062] In the disclosed embodiment, by matching each split sub-requirement with the functional description information in the common operator set to obtain a matching result for each sub-requirement, the common operator set can be effectively utilized to meet the functional requirements while ensuring the rational allocation and efficient utilization of resources, which helps to reduce duplication of work and improve development efficiency.

[0063] In addition, the large model can also analyze the key sub-requirements in each sub-requirement. It can also determine the functional description information that matches the functional requirements based on the principle that the key sub-requirements must be met. For example, when the same operator meets multiple sub-requirements, the matching degree between the operator that meets the key sub-requirements and the functional description information of the operator can be improved (for example, the matching degree is increased by n, and the value of n is proportional to the key program of the keyword requirement), so as to screen out the appropriate operator. For example, the functional requirements are analyzed, and the sub-requirements that are disassembled include: data segmentation, data filtering, and data format inspection. Operator A can meet all the disassembled sub-requirements at the same time, while operator B can only meet the sub-requirement of data segmentation, and operator C can only meet the sub-requirement of data filtering. In this case, the key sub-requirements in each sub-requirement are analyzed by the large model. For example, if the data segmentation in the sub-requirement is a key sub-requirement, the matching degree of operators A and B with the key sub-requirement can be compared, so as to screen out the more suitable operator A.

[0064] S202, filtering out operators corresponding to function description information matching the function requirement from the public operator set, and obtaining a plurality of recommended operators.

[0065] The recommended operators can be output to the target object for display, so that the target object can obtain the appropriate operator through simple interface operations.

[0066] When displaying the output, each operator can be described to facilitate the target object to understand each operator and guide the target object to make the correct choice.

[0067] S203 , in response to the target object's selection operation on the multiple recommended operators, obtaining multiple first target operators.

[0068] The target object will review the recommended operator list and select it according to its business needs, experience or other criteria. For example, for operators with the same function, they are sorted according to their scores and the top-ranked operator is selected as the first target operator. The score can be the aforementioned matching degree or calculated based on the feedback from users who have used the operator.

[0069] In addition to selecting the required operators from the public operator set, the target object can develop the required operators by itself to meet new business requirements. Therefore, in S204, an operator set is constructed based on the multiple first target operators and the second target operator customized by the target object.

[0070] That is, in addition to the operators selected from the public operator set, the target object may also require some specific functional requirements that cannot be met in the existing public operator set. Therefore, the target object may need to customize some operators, namely the second target operators. These customized operators will form a complete operator set together with the first target operators.

[0071] In the disclosed embodiments, the predefined common operator set can quickly identify operators that match the functional requirements of the target object. This avoids the need to redevelop operators from scratch for each new project or application, saving time, resources, and development costs. As new functional requirements emerge, only new operators can be developed and combined with existing operators to integrate them together, thereby improving the efficiency of data processing.

[0072] In some embodiments, it is understandable that when the target object does not need to develop new operators, only operators corresponding to functional description information matching the functional requirements can be screened out from the public operator set to construct an operator set.

[0073] Based on the above, in order to optimize the resources of the public operator set and further improve the development efficiency, in the embodiment of the present disclosure, for the second target operator customized by the target object, the big model will analyze it based on the preset detection standard and generate relevant prompt information. The target object determines whether to register it in the public operator set. The specific implementation steps are as follows:

[0074] Step B1, using the large model to analyze the second target operator to obtain the input parameters, output parameters and functional description information of the second target operator.

[0075] Input parameters are the operator's requirements for input parameters, for example, the data types of name and school.

[0076] The output parameter is the result of processing the input parameter. For example, the two string variables of the input parameters name and school are connected by the "+" operator to obtain the output parameter of nick_name.

[0077] The functional description information is the appearance of the functions that the operator can realize, as well as some introductions to the operator, such as complexity, hardware resource requirements, etc.

[0078] Step B2: When it is determined that there is no private domain information in the input parameters and the output parameters and the function description information meets the preset requirements, the target object is requested to register the second target operator into the public operator set.

[0079] During implementation, in some specific cases, the target object generates unique operators during the development of the operator. These unique operators cannot be extended to other scenarios for use, so these operators can be considered private operators. Therefore, the large model can automatically analyze the private operators by analyzing the input parameters and output parameters. When it is determined that there is no private information in the input and output parameters of the second target operator, the operator is determined to be a non-private operator. In addition, whether the preset requirements are met can be evaluated based on the complexity of the operators in the functional description information, the requirements for hardware resources, etc. For example, the complexity can be required to be lower than the preset complexity, the performance of the current remaining hardware resources can meet the requirements of the hardware resources, and the functional description information meets the preset requirements, and the target object can be requested to add it to the public operator set. For example, a prompt message can be generated for the target object, "Please select whether to make the operator public in the public operator set", giving the target object an option to choose.

[0080] Step B3: When it is determined that the target object allows the second target operator to be registered to the public operator set, a registration operation is completed based on input parameters, output parameters and functional description information of the second target operator.

[0081] In the disclosed embodiment, a large model is used to analyze the second target operator customized by the target object to obtain the key parameters of the second target operator. Based on the key parameters, it can be analyzed whether the second target operator is suitable for being added to the public operator set. If it is suitable, the registration can be automatically completed to enrich the public operator set. Therefore, the disclosed embodiment can intelligently analyze the operator and complete the intelligent registration of the operator.

[0082] In the disclosed embodiment, the function description information includes the operator's demand for hardware resources, and operators with low hardware resource requirements and capable of meeting task requirements can be screened out, thereby saving hardware resources.

[0083] In the embodiment of the present disclosure, in order to further reduce the development efficiency, it is possible to Figure 3 The method shown in the figure determines the mapping relationship between operator formal parameters and actual parameters, including:

[0084] S301, obtaining description information of each field in the target task.

[0085] That is, get all the fields involved in the target task and their meanings. Each field has its specific name, type, and description. For example, "name" represents the input data of the target task, which is used to describe names such as people and places; "school" represents another type of input data, which is used to describe the name of a school.

[0086] S302, matching the description information of each field with the parameters and function description information of each operator in the operator set to obtain a matching relationship from the formal parameters of each operator to the field.

[0087] For example, an operator set contains the following operators:

[0088] Loader(input_name): An operator that loads data. You need to input a name, such as a person's name.

[0089] ResultWriter(output_dir): The operator that writes results needs to output names, such as finding the place name or address corresponding to a person's name.

[0090] Match the description information of each field with the explanation of the parameters of each operator in the operator set in the function description information to obtain the matching relationship between the formal parameters of each operator and the fields. For example, the name field can match the input_name parameter; the school field can match the output_dir parameter of the operator.

[0091] S303: Recommend the matching relationship to the target object.

[0092] After determining these matching relationships, these matching relationships are recommended to the target object. The target object can confirm or optimize the recommended matching relationships according to business needs.

[0093] S304: Determine the mapping relationship from formal parameters to actual parameters based on the operation of the target object on the matching relationship.

[0094] The target object can check the matching relationship to correct inappropriate matching relationships according to business needs.

[0095] According to the operation and feedback of the target object, the mapping relationship between formal parameters (operator parameters) and actual parameters (task fields) is finally determined. If the formal parameter to actual parameter mapping is not configured, the actual parameter has the same name as the formal parameter by default. In addition, if the non-universal strategy operator does not consider code reuse, the parameter name of this type of operator can be fixed directly.

[0096] In the disclosed embodiment, the relationship between each operator and the data field that actually needs to be processed can be automatically analyzed, thereby automatically determining the parameters that need to be processed for each operator. There is no need for the target object to manually configure each operator one by one, which can improve development efficiency. On this basis, the target object can confirm and modify, which can ensure the accuracy of the mapping from formal parameters to actual parameters and improve the accuracy of the automatically configured computing topology diagram.

[0097] In order to improve the flexibility of operator configuration, the embodiments of the present disclosure support dynamic composition during execution. In the embodiments of the present disclosure, for any third target operator in the operator set, the target object is supported to customize the status code to be returned for different execution results. The third target operator can be any operator in the operator set. Different status codes can be configured with different post-processing strategies.

[0098] By defining different status codes, the execution results of the operators can be clearly judged, so that each operator returns different information according to the execution status of the business, and configures different post-processing strategies, thereby realizing dynamic composition and improving the flexibility of operator reuse.

[0099] In some embodiments, the status code includes, but is not limited to, at least one of the following:

[0100] The first status subcode is used to indicate that the task of the third target operator is successfully executed;

[0101] The second status subcode is used to indicate that the third target operator is executed abnormally;

[0102] The third status subcode is used to indicate that the target task needs to be interrupted when the execution result of the third target operator meets the first trigger condition.

[0103] For example, the "NO_NEED_EMIT" parameter indicates that all results of the target task will be interrupted and will not be executed any further.

[0104] The fourth state subcode is used to indicate that dynamic composition is required when the execution result of the third target operator meets the second trigger condition; wherein the fourth state subcode includes an addressing symbol, and the addressing symbol is used to jump to the fourth target operator corresponding to the addressing symbol after executing the third target operator to continue executing the target task.

[0105] When the second trigger condition is met, the operation may not be executed according to the calculation topology diagram, but the current operator may jump to other operators to perform subsequent operations, so that the diagram can be dynamically composed during the execution process. For example, the original topology diagram needs to execute operator A, then operator B, and then operator C. When the execution result of operator A meets the second trigger condition, operator B can be skipped and operator C can be executed directly. In this way, the execution logic of the original calculation topology diagram can be changed during the execution process according to the execution requirements of the business, and automatic composition can be completed.

[0106] In some embodiments, if it is necessary to return a special status code "SKIP_TO_TAG" in the returned result, followed by the name of the tag, the target task can be automatically addressed and sent to the desired operator when the execution reaches this point. Figure 4 As shown in the figure, the "init_wrapper" operator no longer passes through the "high_wrapper" operator and the "low_wrapper" operator, but directly jumps to the "exporter" operator to continue executing the target task, thereby speeding up the execution efficiency of the target task.

[0107] In the disclosed embodiment, the state code can adapt to the execution requirements of different services. The addressing symbol can further realize dynamic composition, further improve the flexibility of target task execution, and save hardware resources when skipping some operators, thereby improving the execution efficiency of data processing.

[0108] In the disclosed embodiment, the computational topology of the operator set can be automatically constructed based on the schema (database mode) information in the original data and the input and output information of each operator. However, if the input and output parameters of multiple target operators depend on the same actual parameter field and the execution order of these operators cannot be determined, the computational topology of the operator set constructed in the disclosed embodiment can be specifically implemented as follows: Figure 5 The methods shown include:

[0109] S501, when there are multiple fifth target operators in the operator set whose input parameters and output parameters are the same, generate an initial topology graph according to a rule for serial execution of the multiple fifth target operators.

[0110] S502: recommending the initial topology map to the target object, and highlighting multiple fifth target operators.

[0111] like Figure 6 As shown, since target operator 4 and target operator 5 rely on the same actual parameter field and the output field and input field are the same, in this case, the initial topology diagram automatically generated by arranging the serial execution relationship according to the default rule can be displayed, and target operator 4 and target operator 5 are highlighted to facilitate the target object to adjust the order relationship.

[0112] S503, obtaining a calculated topology map based on the operation of the target object on the initial topology map.

[0113] The target object can modify the initial topology map according to the business processing requirements to obtain the calculated topology map. For example, the input and output parameters of target operator 4 and target operator 5 are both a, but the values ​​are different. The user can modify them according to the existing information, such as target operator 4 is hashed first, and target operator 5 is base64 encoded afterwards, so as to complete the modification of the initial topology map.

[0114] In the disclosed embodiment, when the input parameters and output parameters of the target operator are the same parameters, an initial topology map can be automatically generated through default rules for the target object to achieve self-correction, which can make the obtained calculation topology map more accurate, thereby improving the efficiency of constructing the calculation topology map.

[0115] After the target object confirms that the calculation topology has been completed, it can be further divided into groups according to whether the target task passes the operator resource usage. The directly related operators are deployed together, and the resource-related operators are deployed together. The specific implementation steps are as follows:

[0116] Step C1, splitting the computing topology graph into multiple sub-graphs according to the performance characteristics of different computing clusters.

[0117] Since different computing clusters have different performances, the computing topology graph is split into multiple subgraphs to facilitate allocation to different computing clusters for processing. For example, operators that are directly related to each other or closely related in the business process are deployed together. Figure 7 As shown in the figure, target operators 0, 1, 2, and 3 are split into instance group 1. Deploy some target operators that require a lot of computing resources separately, such as Figure 7 As shown, the target operator 4 is split into instance group 2.

[0118] Step C2, allocating each subgraph to a corresponding computing cluster to process data of the target task.

[0119] In the disclosed embodiment, the computing topology graph is split into multiple sub-graphs according to the performance characteristics of different computing clusters, which can better balance the load between computer clusters, thereby improving data processing efficiency, avoiding resource bottlenecks and waste, and improving resource utilization.

[0120] In some embodiments, in order to further improve the execution efficiency of the target task and make full use of storage resources, in the embodiments of the present disclosure, each subgraph is allocated to a corresponding computing cluster to process the data of the target task, which can be implemented as follows: Figure 8 Contents shown:

[0121] S801, for each subgraph in each cluster, the input data for the subgraph in the target task is stored in the memory by column through a deserialization operation.

[0122] In the embodiment of the present disclosure, the input data is deserialized and converted into a memory object to form a memory-based lock-free queue. The deserialization operation is stored in the memory by column, and the specific implementation steps are as follows:

[0123] Step D1, determining the parameter dependencies between operators in the subgraph.

[0124] like Fig. 9 As shown, the operators in local queue 0 are used for entity splitting; the operators in local queue 2 are used for strategy scoring; the output parameters of the operators in local queue 0 are the input parameters of the operators in local queue 2, so as to determine the parameter dependency between the operators in the subgraph.

[0125] In step D2, based on the parameter dependency, the input data of the subgraph is stored in the memory by column through a deserialization operation.

[0126] Among them, Fig. 9 As shown, for example, based on the data dependency, the number of columns occupied by the new data generated by the operator in the subgraph can be determined, and the memory space can be applied according to the sum of the number of columns occupied and the number of columns occupied by the input data, so that the number of columns in the memory space is not less than the sum.

[0127] like Fig. 9 As shown, assuming that the original data occupies n columns, the entity splitting operator generates 2 new columns of data including data 1 and data 2. It is necessary to rewrite 2 columns of data in these n columns of data, so the number of columns required to execute the entity splitting is still n. The new strategy operator needs to process data 1 to obtain data 3, and the strategy splitting operator needs to process data 2 to obtain data 4. Therefore, two new columns need to be added to execute these two operators, and the total number of columns required is n+2. Strategy operator 3 needs to process data 3 and data 4 to generate data 5 and 6, so the total number of columns supported is n+4. Similarly, the memory capacity requirement can be determined according to the data dependency relationship between different operators in the subgraph, so as to ensure the smooth progress of the subgraph while deserializing the input data into the memory.

[0128] During the execution of operators, new data generated will be stored in memory by column. For example, operator A needs to process data 1 to obtain data 2, and operator B needs to add data 1 and data 2. Then data 2 can be stored in memory by column for subsequent use by operator B.

[0129] In the embodiment of the present disclosure, serialization is performed based on the data dependency relationship between operators to ensure that data can be processed by column, thereby improving the flexibility and efficiency of data processing.

[0130] S802, control each operator in the subgraph to process data by column based on the memory, and store the processing results in the memory by column.

[0131] S803: When the last operator in the subgraph obtains a processing result, the processing result is serialized.

[0132] When all operators in a subgraph have completed processing, the final processing results need to be serialized for storage or transmission.

[0133] In the disclosed embodiment, only one serialization and deserialization operation is performed to optimize the processing of the subgraph, greatly reduce the overhead of data conversion, and improve the efficiency and performance of data processing. In the entire data processing process, by implementing lock-free column-by-column data processing operations, this not only reduces the waiting time between threads, but also eliminates the performance bottleneck caused by lock competition, making data processing smoother and faster.

[0134] In addition, in the embodiment of the present disclosure, when transferring data in a subgraph, a signal notification mechanism is used to effectively avoid frequent memory copies. The specific implementation steps are as follows:

[0135] Step E1: for each operator in the subgraph, upon receiving a first notification signal sent by an upstream operator of the operator, check the execution status of all upstream operators of the operator from the address corresponding to the first notification signal.

[0136] The address corresponding to the first notification signal contains not only the execution status of the upstream operator, but also the data storage address of the processing result of the operator in the memory. The operator that receives the first notification signal will check the execution status of all its upstream operators from the address provided by this signal, that is, confirm whether its predecessor tasks have been completed. In the case where the current operator depends on multiple upstream operators, the first notification signal sent by each upstream operator can be received separately to confirm the execution status of each upstream operator respectively.

[0137] Step E2, when it is determined based on the execution status that all upstream operators of the operator have completed execution, the input data required by the operator is obtained from the data queue of the upstream operator in the memory.

[0138] If, based on the checked execution status, it is determined that all upstream operators have completed their tasks, then the current operator knows that it can safely obtain the input data it needs from the upstream operator's in-memory data queue.

[0139] like Fig. 9 As shown, the upstream operators that the new strategy operator 3 needs to rely on include the new strategy operator and the strategy score operator. After the execution of these two operators is completed, each of them sends a notification signal to the strategy operator 3. The notification signal includes the address of the local queue 3. After the strategy operator 3 receives the notification signal from any upstream operator, it detects the execution status of the upstream operator in the address carried by the notification signal, that is, the address of the local queue 3. When its execution status is completed, it is confirmed that the upstream operator has completed the task. When it is confirmed that both upstream operators have completed the task, the data to be processed can be found in the local queue 3.

[0140] Step E3, execute the operation of the operator based on the input data, obtain the execution result of the operator, and update the execution status of the operator.

[0141] That is, after the operator completes its operation, it updates its execution status, indicating that the operator is ready to provide data to downstream operators.

[0142] Step E4: When the operator is executed, a second notification signal is sent to the downstream operator of the operator, so that the downstream operator executes the target task based on the second notification signal.

[0143] When the operator is executed, it will send a second notification signal to the downstream operator. After receiving the second notification signal, the downstream operator will perform the corresponding target task according to this signal. For example, it will obtain data, perform operations, update status, and continue to send notifications to downstream operators.

[0144] In the disclosed embodiment, information is transmitted between operators through notification signals, so that each operator can know when to start its own task and when it can safely obtain input data, avoiding frequent memory copies, thereby significantly improving the efficiency of data transmission, and at the same time ensuring data consistency and the correct execution order of target tasks.

[0145] In the disclosed embodiment, in order to further improve the business process and optimize the performance, the execution status of each operator in the subgraph can be monitored. In this way, by analyzing the execution status of each operator such as execution time, resource consumption and other indicators, each operator can be tuned to improve the overall performance. It is also convenient to reasonably allocate resources to ensure that key operators have sufficient resources to run while avoiding resource waste. In addition, monitoring the execution status of operators can ensure that the execution target tasks can be executed in the optimal order, thereby improving data processing efficiency.

[0146] In summary, the data processing method provided in the embodiments of the present disclosure makes the execution efficiency of the entire framework very high, which is different from the traditional data processing framework, such as Fig.10 As shown, there are several stages as follows:

[0147] (1) Operator Release Phase

[0148] When each operator is released, all the formal parameter names, actual parameter names, operator names and operator function description information of the current operator can be generated through large model analysis and processing, thereby completing the discovery and intelligent registration of new operators.

[0149] (2) Using operator configuration information

[0150] The business needs to complete the operators that need to be developed and configure the necessary data information in the entire computing topology. The mapping relationship between formal parameters and actual parameters can be automatically mined. For general architecture operators, the mapping relationship between operator formal parameters and actual parameters can be supported for target objects. At the same time, the operator characteristic configuration in each business operator is configured. For example, when selecting an operator for vector calculation, it is necessary to confirm the model parameters of the vector (for example, which specific algorithm for the same function is used), and select the operator for database construction to clarify the business database construction cluster and resource number. Select the operator for filling the picture to clarify the operator's picture filling parameters, etc. Among them, the picture filling operator is used to transfer the external link image to the local for use. The image can be processed during the transfer process.

[0151] (3) Automatically construct and calculate the topology map

[0152] Based on the parameter information of the target object configuration, that is, the data dependency relationship between operators, the calculation topology diagram is automatically constructed. For operators with the same input and output parameters, the order is arranged according to the default rules, and a prompt mark is generated and submitted to the target object for confirmation.

[0153] (4) Target audience confirmation

[0154] For the results in (3) that cannot be automatically arranged and confirmed, the target object actively confirms and supports the modification of its context.

[0155] (5) Calculation split

[0156] After the target object confirms the completion of the computing topology diagram, it can be further grouped and split according to the resource usage of the computing cluster used by the business, and directly related operators can be deployed together, and resource-related operators can be deployed together.

[0157] like Fig.11 As shown in the figure, the right side shows a common operator set constructed by multiple reusable operators, including general strategy operators that can be executed locally and general service operators that need to be executed through services. Based on the method provided by the embodiment of the present disclosure, after the computing topology diagram is overlapped based on the functional requirements of the target object, as shown in Fig.11 As shown, three sub-graphs are split. Fig.11 The internal topology of one of the subgraphs is shown in Figure 1. The new strategy operator can be understood as the second target operator customized by the target object. Fig.11 As shown, the target object can define the input parameter method and output parameter method according to the operator specification, and can define a tag label to jump to the specified operator corresponding to the tag.

[0158] exist Fig.11In the first subgraph of the graph, the target task to be processed is passed through the message middleware. The input data of the subgraph is stored in the memory by column based on the lock-free queue of the memory. And the tasks of each operator are completed through a deserialization and serialization operation. The data transmission between operators is completed based on the signal notification mechanism. The execution process of an operator includes checking the status of the upstream operator, modifying the current operator status, reusing the operator configuration parameters, and marking the current operator status.

[0159] Among them, for each operator, Fig.11 Taking the new operator of medium strategy as an example, its execution process includes the following stages:

[0160] (1) Check the execution status of the upstream operator based on the notification information between operators. The execution status can include not executed, executing, and completed.

[0161] (2) When it is determined that all upstream operators have completed execution, you can maintain and modify your own execution status.

[0162] (3) During the execution process, the operator obtains the actual parameter data for processing through the mapping relationship between formal parameters and actual parameters, and assigns the processing structure to the formal parameters of the output parameters. After the execution is completed, the operator modifies its own execution status and notifies the next operator.

[0163] (4) During the execution process, the status code can be determined based on the returned result. If it is a status code for normal processing, it is passed to the operator in the downstream operator list for processing according to the calculation topology diagram. If it is dynamically loaded, for example, the fourth status subcode is extracted, the TAG tag is extracted from it, and the next operator that needs to be dynamically adjusted is identified to continue executing the business.

[0164] Based on the same technical concept, the embodiment of the present disclosure also provides a data processing device 1200, such as Fig.12 As shown, including:

[0165] The screening module 1201 is used to screen out a plurality of required operators from the public operator set according to the functional requirements of the target object to construct an operator set;

[0166] A determination module 1202, configured to determine the parameters of each operator in the operator set based on the mapping relationship from formal parameters to actual parameters;

[0167] A construction module 1203 is used to construct a computational topology graph of an operator set based on parameter dependencies between operators;

[0168] The processing module 1204 is used to process the data of the target task based on the calculation topology graph.

[0169] In some embodiments, the screening module comprises:

[0170] A matching subunit, used to match the functional requirements of the target object with the functional description information in the public operator set;

[0171] A screening subunit is used to screen out operators corresponding to the function description information matching the function requirement from the public operator set, and obtain multiple recommended operators;

[0172] A response subunit, configured to obtain a plurality of first target operators in response to a selection operation of a target object on a plurality of recommended operators;

[0173] The construction subunit is used to construct an operator set based on multiple first target operators and a second target operator customized by the target object.

[0174] In some embodiments, the matching subunit is specifically used for:

[0175] Analyze the functional requirements and break them down into at least one sub-requirement;

[0176] Match each sub-requirement with the functional description information in the public operator set to obtain the matching result of each sub-requirement;

[0177] Based on the matching degree between the sub-requirements and the functional description information, the functional description information matching the functional requirement is determined.

[0178] In some embodiments, a recommendation module is further included, specifically configured to:

[0179] The large model is used to analyze the second target operator to obtain input parameters, output parameters and functional description information of the second target operator;

[0180] When it is determined that there is no private domain information in the input parameters and the output parameters and the function description information meets the preset requirements, request the target object to register the second target operator into the public operator set;

[0181] When it is determined that the target object allows the second target operator to be registered into the public operator set, the registration operation is completed based on the input parameters, output parameters and function description information of the second target operator.

[0182] In some embodiments, a mapping module is further included to:

[0183] Get the description information of each field in the target task;

[0184] Match the description information of each field with the parameters and function description information of each operator in the operator set to obtain the matching relationship between the formal parameters of each operator and the field;

[0185] Recommend matching relationships to target objects;

[0186] Based on the target object's operation on the matching relationship, the mapping relationship from formal parameters to actual parameters is determined.

[0187] In some embodiments, any third target operator in the operator set supports the target object to customize the status code to be returned for different execution results.

[0188] In some embodiments, the status code includes at least one of the following:

[0189] The first status subcode is used to indicate that the task of the third target operator is successfully executed;

[0190] The second status subcode is used to indicate that the third target operator is executed abnormally;

[0191] The third status subcode is used to indicate that the target task needs to be interrupted when the execution result of the third target operator satisfies the first trigger condition;

[0192] A fourth state subcode, used to indicate that dynamic composition is required when the execution result of the third target operator satisfies the second trigger condition;

[0193] The fourth state subcode includes an addressing symbol, and the addressing symbol is used to jump to a fourth target operator corresponding to the addressing symbol after executing the third target operator to continue executing the target task.

[0194] In some embodiments, the building blocks include:

[0195] In the case where there are multiple fifth target operators in the operator set whose input parameters and output parameters are the same, an initial topology graph is generated according to the rule of serial execution of multiple fifth target operators;

[0196] recommending the initial topology map to the target object and highlighting multiple fifth target operators;

[0197] Based on the operation of the target object on the initial topology graph, a calculated topology graph is obtained.

[0198] In some embodiments, the processing module includes:

[0199] A splitting unit is used to split the computing topology graph into multiple sub-graphs according to the performance characteristics of different computing clusters;

[0200] The processing unit is used to allocate each subgraph to a corresponding computing cluster to process the data of the target task.

[0201] In some embodiments, the processing unit is specifically configured to:

[0202] For each subgraph in each cluster, the input data for the subgraph in the target task is stored in memory by column through deserialization operation;

[0203] Each operator in the control subgraph processes data by column based on the memory, and stores the processing results in the memory by column;

[0204] When the last operator in the subgraph obtains the processing result, the processing result is serialized.

[0205] In some embodiments, the processing unit is specifically configured to:

[0206] For each operator in the subgraph, upon receiving a first notification signal sent by an upstream operator of the operator;

[0207] Check the execution status of all upstream operators of the operator from the address corresponding to the first notification signal;

[0208] When it is determined based on the execution status that all upstream operators of the operator have completed execution, the input data required by the operator is obtained from the data queue of the upstream operator in the memory;

[0209] Execute the operator's operation based on the input data, obtain the operator's execution result, and update the operator's execution status;

[0210] When the operator is executed, a second notification signal is sent to the downstream operator of the operator, so that the downstream operator executes the target task based on the second notification signal.

[0211] In some embodiments, a monitoring module is also included to monitor the execution status of each operator in the subgraph.

[0212] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0213] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0214] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0215] Fig.13A schematic block diagram of an example electronic device 1300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0216] like Fig.13 As shown, the device 1300 includes a computing unit 1301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1302 or a computer program loaded from a storage unit 1308 into a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the device 1300 can also be stored. The computing unit 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0217] A number of components in the device 1300 are connected to the I / O interface 1305, including: an input unit 1306, such as a keyboard, a mouse, etc.; an output unit 1307, such as various types of displays, speakers, etc.; a storage unit 1308, such as a disk, an optical disk, etc.; and a communication unit 1309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1309 allows the device 1300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0218] The computing unit 1301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1301 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1300 via ROM 1302 and / or communication unit 1309. When the computer program is loaded into RAM 1303 and executed by the computing unit 1301, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1301 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).

[0219] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0220] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0221] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0222] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0223] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0224] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0225] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0226] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data processing method, comprising: According to the functional requirements of the target object, multiple required operators are selected from the public operator set to construct an operator set; Determine the parameters of each operator in the operator set based on the mapping relationship between formal parameters and actual parameters; Based on the parameter dependency relationship between operators, construct a computational topology graph of the operator set; The data of the target task is processed based on the computing topology graph.

2. The method according to claim 1, wherein: According to the functional requirements of the target object, multiple required operators are screened out from the public operator set to construct an operator set, including: Matching the functional requirements of the target object with the functional description information in the public operator set; Filtering out operators corresponding to the function description information matching the function requirement from the public operator set to obtain a plurality of recommended operators; In response to the target object's selection operation on the plurality of recommended operators, a plurality of first target operators are obtained; The operator set is constructed based on the multiple first target operators and a second target operator customized by the target object.

3. The method according to claim 2, wherein: The matching of the functional requirements of the target object with the functional description information in the common operator set includes: Analyze the functional requirement and break it down into at least one sub-requirement; Matching each sub-requirement with the functional description information in the common operator set to obtain a matching result for each sub-requirement; Based on the matching degree between the sub-requirement and the functional description information, functional description information matching the functional requirement is determined.

4. The method according to claim 2, further comprising: Using a large model to analyze the second target operator, to obtain input parameters, output parameters and functional description information of the second target operator; When it is determined that there is no private domain information in the input parameters and the output parameters, and the function description information meets the preset requirements, requesting the target object to register the second target operator into the public operator set; In the case where it is determined that the target object allows the second target operator to be registered to the public operator set, a registration operation is completed based on input parameters, output parameters and functional description information of the second target operator.

5. The method according to claim 1, further comprising: Obtaining description information of each field in the target task; Matching the description information of each field with the parameters and function description information of each operator in the operator set to obtain a matching relationship from the formal parameters of each operator to the field; recommending the matching relationship to the target object; Based on the operation of the target object on the matching relationship, a mapping relationship from the formal parameter to the actual parameter is determined.

6. The method according to claim 1, wherein: Any third target operator in the operator set supports the target object to customize the status code to be returned for different execution results.

7. The method according to claim 6, wherein: The status code includes at least one of the following: A first status subcode, used to indicate that the task of the third target operator is successfully executed; A second status subcode, used to indicate that the third target operator is executed abnormally; A third status subcode, used to indicate that the target task needs to be interrupted when the execution result of the third target operator satisfies the first trigger condition; A fourth state subcode, used to indicate that dynamic composition is required when the execution result of the third target operator satisfies the second trigger condition; The fourth state subcode includes an addressing symbol, and the addressing symbol is used to jump to a fourth target operator corresponding to the addressing symbol after executing the third target operator to continue executing the target task.

8. The method according to claim 1, wherein: The step of constructing a computational topology graph of the operator set based on the parameter dependency relationship between the operators includes: In the case where there are multiple fifth target operators in the operator set whose input parameters and output parameters are the same parameters, generating an initial topology graph according to a rule for serial execution of the multiple fifth target operators; recommending the initial topology map to the target object, and highlighting the plurality of fifth target operators; The calculated topology map is obtained based on the operation of the target object on the initial topology map.

9. The method according to any one of claims 1 to 8, wherein: The processing of target task data based on the computing topology graph includes: According to the performance characteristics of different computing clusters, the computing topology graph is split into multiple sub-graphs; Each subgraph is assigned to a corresponding computing cluster to process the data of the target task.

10. The method according to claim 9, wherein: The allocating each subgraph to a corresponding computing cluster to process data of the target task includes: For the subgraph in each cluster, the input data for the subgraph in the target task is stored in the memory by column through a deserialization operation; Controlling each operator in the subgraph to process data by column based on the memory, and storing the processing results in the memory by column; When the last operator in the subgraph obtains a processing result, the processing result is serialized.

11. The method according to claim 10, wherein: The controlling each operator in the subgraph to process data by column based on the memory includes: For each operator in the subgraph, upon receiving a first notification signal sent by an upstream operator of the operator; Checking the execution status of all upstream operators of the operator from the address corresponding to the first notification signal; When it is determined based on the execution status that all upstream operators of the operator have completed execution, obtaining input data required by the operator from the data queue of the upstream operator in the memory; Execute the operation of the operator based on the input data, obtain the execution result of the operator, and update the execution state of the operator; When the operator is executed, a second notification signal is sent to a downstream operator of the operator, so that the downstream operator executes the target task based on the second notification signal.

12. The method according to claim 10, further comprising: Monitor the execution status of each operator in the subgraph.

13. A data processing device, comprising: A screening module is used to screen out multiple required operators from a public operator set according to the functional requirements of the target object to construct an operator set; A determination module, used to determine the parameters of each operator in the operator set based on the mapping relationship from formal parameters to actual parameters; A construction module, used to construct a computational topology graph of the operator set based on parameter dependencies between operators; A processing module is used to process the data of the target task based on the computing topology graph.

14. The device according to claim 13, wherein: The screening module comprises: A matching subunit, used for matching the functional requirements of the target object with the functional description information in the common operator set; A screening subunit, configured to screen out operators corresponding to the function description information matching the function requirement from the public operator set, to obtain a plurality of recommended operators; A response subunit, configured to obtain a plurality of first target operators in response to a selection operation of the target object on the plurality of recommended operators; A construction subunit is used to construct the operator set based on the multiple first target operators and the second target operator customized by the target object.

15. The device according to claim 14, wherein: The matching subunit is specifically used for: Analyze the functional requirement and break it down into at least one sub-requirement; Matching each sub-requirement with the functional description information in the common operator set to obtain a matching result for each sub-requirement; Based on the matching degree between the sub-requirement and the functional description information, functional description information matching the functional requirement is determined.

16. The device according to claim 14, further comprising a recommendation module, specifically configured to: Using a large model to analyze the second target operator, to obtain input parameters, output parameters and functional description information of the second target operator; When it is determined that there is no private domain information in the input parameters and the output parameters, and the function description information meets the preset requirements, requesting the target object to register the second target operator into the public operator set; In the case where it is determined that the target object allows the second target operator to be registered to the public operator set, a registration operation is completed based on input parameters, output parameters and functional description information of the second target operator.

17. The apparatus according to claim 13, further comprising a mapping module, configured to: Obtaining description information of each field in the target task; Matching the description information of each field with the parameters and function description information of each operator in the operator set to obtain a matching relationship from the formal parameters of each operator to the field; recommending the matching relationship to the target object; Based on the operation of the target object on the matching relationship, a mapping relationship from the formal parameter to the actual parameter is determined.

18. The device according to claim 13, wherein: Any third target operator in the operator set supports the target object to customize the status code to be returned for different execution results.

19. The device according to claim 18, wherein: The status code includes at least one of the following: A first status subcode, used to indicate that the task of the third target operator is successfully executed; A second status subcode, used to indicate that the third target operator is executed abnormally; A third status subcode, used to indicate that the target task needs to be interrupted when the execution result of the third target operator satisfies the first trigger condition; A fourth state subcode, used to indicate that dynamic composition is required when the execution result of the third target operator satisfies the second trigger condition; The fourth state subcode includes an addressing symbol, and the addressing symbol is used to jump to a fourth target operator corresponding to the addressing symbol after executing the third target operator to continue executing the target task.

20. The device according to claim 13, wherein: The building blocks include: In the case where there are multiple fifth target operators in the operator set whose input parameters and output parameters are the same parameters, generating an initial topology graph according to a rule for serial execution of the multiple fifth target operators; recommending the initial topology map to the target object, and highlighting the plurality of fifth target operators; The calculated topology map is obtained based on the operation of the target object on the initial topology map.

21. The device according to any one of claims 13 to 20, wherein: The processing module comprises: A splitting unit, used for splitting the computing topology graph into multiple sub-graphs according to the performance characteristics of different computing clusters; The processing unit is used to distribute each subgraph to a corresponding computing cluster to process the data of the target task.

22. The device according to claim 21, wherein The processing unit is specifically used for: For the subgraph in each cluster, the input data for the subgraph in the target task is stored in the memory by column through a deserialization operation; Controlling each operator in the subgraph to process data by column based on the memory, and storing the processing results in the memory by column; When the last operator in the subgraph obtains a processing result, the processing result is serialized.

23. The device according to claim 22, wherein: The processing unit is specifically used for: For each operator in the subgraph, upon receiving a first notification signal sent by an upstream operator of the operator; Checking the execution status of all upstream operators of the operator from the address corresponding to the first notification signal; When it is determined based on the execution status that all upstream operators of the operator have completed execution, obtaining input data required by the operator from the data queue of the upstream operator in the memory; Execute the operation of the operator based on the input data, obtain the execution result of the operator, and update the execution state of the operator; When the operator is executed, a second notification signal is sent to a downstream operator of the operator, so that the downstream operator executes the target task based on the second notification signal.

24. The apparatus according to claim 22, further comprising a monitoring module for monitoring the execution status of each operator in the subgraph.

25. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.

26. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.

27. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 12.

Citation Information

Cited By

  • Intelligent scheme operation method and device, electronic device and storage medium

    CN119336509A

  • Intelligent solution operation method, device, electronic device and storage medium

    CN119336509B