Data processing method and device

By freezing and concurrently processing target objects in very large graphs, the problem of low data processing efficiency in graph learning architecture is solved and a more efficient data processing process is achieved.

CN115080241BActive Publication Date: 2024-10-15ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210762371.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-10-15
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

In the graph learning architecture, the processing efficiency of very large graphs is low, resulting in long data processing time. It is difficult for existing technology to effectively solve this problem.

Method used

By determining the target object and its corresponding multiple processing operators, freezing the object and adding it to the data queue, using concurrent execution to improve processing efficiency, and achieving parallel processing of the target object.

Benefits of technology

It improves the efficiency of data processing, reduces processing time, and is suitable for graph learning and other data processing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080241B_ABST
    Figure CN115080241B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a data processing method and device, wherein the data processing method is applied to a first processing end, including: determining a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object; when any processing operator is executed on the target object, freezing the target object and adding the target object to a data queue corresponding to any processing operator; extracting a plurality of target objects from any data queue, and sending the plurality of target objects to a second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the plurality of target objects; receiving the processing result fed back by the second processing end, and unfreezing the plurality of target objects according to the processing result. Accurately gather the target objects and improve the efficiency of executing the processing operator on the target objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a data processing method. One or more embodiments of this specification also relate to a data processing device, a data processing system, a computing device, a computer-readable storage medium, and a computer program. Background Art

[0002] With the development of computer technology, more and more computer technologies are applied in the field of data processing. Taking the graph learning architecture as an example, a graph is composed of two types of elements, namely "points" (or nodes) and "edges". Each edge has two vertices as its endpoints, and we say that this edge "connects" its two endpoints.

[0003] Currently, all points and edges in a graph can be sent to a graphics processor for calculation. However, very large graphs often include a large number of points and edges. These points and edges take a lot of time to process, greatly affecting the efficiency of data processing. Therefore, an efficient data processing solution is urgently needed. Summary of the invention

[0004] In view of this, the embodiments of this specification provide a data processing method. One or more embodiments of this specification also relate to a data processing device, a data processing system, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a data processing method is provided, which is applied to a first processing end, and the method includes:

[0006] Determine a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object;

[0007] When any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator;

[0008] Extracting multiple target objects from any data queue, and sending the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects;

[0009] The processing result fed back by the second processing end is received, and the plurality of target objects are unfrozen according to the processing result.

[0010] According to a second aspect of an embodiment of this specification, a data processing method is provided, which is applied to a second processing end, and the method includes:

[0011] Receive multiple target objects sent by the first processing end, wherein the target object is determined by the first processing end as a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, freeze the target object when any processing operator is executed on the target object, and add the target object to a data queue corresponding to any processing operator, extract the target object from any data queue, the target object carries execution sequences for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object;

[0012] Concurrently execute the processing operators corresponding to any data queue on multiple target objects to obtain the processing results;

[0013] Feedback the processing result to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

[0014] According to a third aspect of an embodiment of this specification, a data processing device is provided, which is applied to a first processing end, and the device includes:

[0015] A determination module is configured to determine a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object;

[0016] A freezing module is configured to freeze the target object when any processing operator is executed on the target object, and add the target object to a data queue corresponding to any processing operator;

[0017] A sending module is configured to extract multiple target objects from any data queue and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects;

[0018] The unfreezing module is configured to receive the processing result fed back by the second processing end, and unfreeze the multiple target objects according to the processing result.

[0019] According to a fourth aspect of an embodiment of this specification, a data processing device is provided, which is applied to a second processing end, and the device includes:

[0020] A receiving module is configured to receive multiple target objects sent by the first processing end, wherein the target object is determined by the first processing end as a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, and when any processing operator is executed on the target object, the target object is frozen, and the target object is added to a data queue corresponding to any processing operator, and is extracted from any data queue, the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object;

[0021] A processing module is configured to concurrently execute a processing operator corresponding to any data queue on multiple target objects to obtain a processing result;

[0022] The feedback module is configured to feed back the processing result to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

[0023] According to a fifth aspect of an embodiment of this specification, there is provided a data processing system, the data processing system comprising a first processing end and a second processing end;

[0024] The first processing end is configured to determine a number of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to a data queue corresponding to any processing operator; a plurality of target objects are extracted from any data queue and sent to the second processing end; a processing result fed back by the second processing end is received, and the plurality of target objects are unfrozen according to the processing result;

[0025] The second processing end is configured to receive multiple target objects sent by the first processing end; concurrently execute the processing operators corresponding to any data queue on the multiple target objects to obtain processing results; and feed back the processing results to the first processing end.

[0026] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:

[0027] Memory and processor;

[0028] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data processing method provided in the first aspect or the second aspect are implemented.

[0029] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the data processing method provided in the first aspect or the second aspect are implemented.

[0030] According to an eighth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the data processing method provided in the first aspect or the second aspect.

[0031] A data processing method provided by an embodiment of the present specification determines a number of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on the feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and the target object is added to the data queue corresponding to any processing operator; multiple target objects are extracted from any data queue, and the multiple target objects are sent to a second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects; the processing result fed back by the second processing end is received, and the multiple target objects are unfrozen according to the processing result. The multiple target objects corresponding to any processing operator are accurately aggregated, and the processing operator corresponding to any data queue is concurrently executed on the multiple target objects, thereby improving the data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a data processing flow chart of a data processing system provided by an embodiment of the present specification;

[0033] Figure 2 It is a schematic diagram of a system architecture applied to a graph learning scenario provided by an embodiment of this specification;

[0034] Figure 3 is a flow chart of a data processing method provided by an embodiment of this specification;

[0035] Figure 4 is a flow chart of another data processing method provided by an embodiment of this specification;

[0036] Figure 5 is a processing flow chart of a data processing method provided by an embodiment of this specification;

[0037] Figure 6 is a structural schematic diagram of a data processing device provided by an embodiment of this specification;

[0038] Figure 7is a schematic diagram of the structure of another data processing device provided by an embodiment of this specification;

[0039] Figure 8 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0040] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0041] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0042] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0043] First, the terms involved in one or more embodiments of this specification are explained.

[0044] Processing operator: A processing operator is an operator used in the image processing process. For example, in a graph learning algorithm model, a processing operator is an operator that performs dimensionality reduction processing on the feature vectors of points and / or edges in the graph learning algorithm model. In another example, in an image recognition scenario, a processing operator is an operator that performs dimensionality reduction processing on the feature vectors of each sub-block in the image.

[0045] CPU (central processing unit): CPU is the computing and control core of the computer system and is the final execution unit for data processing and program running.

[0046] Graphics processing unit (GPU): GPU, also known as display core, visual processor, display chip, is a microprocessor that specializes in performing image and graphics related calculations on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones, etc.).

[0047] In this specification, a data processing method is provided. One or more embodiments of this specification simultaneously relate to a data processing apparatus, a data processing system, a computing device, a computer-readable storage medium and a computer program, which are described in detail one by one in the following embodiments.

[0048] With the development of computer technology, more and more computer technologies are applied in the field of data processing. Taking the graph learning architecture as an example, a graph is composed of two types of elements, namely "points" (or nodes) and "edges". Each edge has two vertices as its endpoints, and we say that this edge "connects" its two endpoints.

[0049] In practical applications, if the graph nodes used are ultra-large-scale graph nodes, the graph learning architecture needs to be deployed as a distributed graph learning architecture, and the graph nodes are dispersed to the various distributed graph learning devices in the graph learning architecture through the graph partitioning algorithm. When the graph nodes are dispersed to the various distributed graph learning devices, there will be critical nodes in the dispersed graph nodes. Some of the neighbor nodes of the critical node are stored in the graph learning device where the critical node is located, and the remaining neighbor nodes of the critical node are stored in other graph learning devices.

[0050] When performing graph learning, the graph learning device where the critical node is located needs to store the node data of the critical node, and the node data of the critical node needs to be mapped to the graph learning device where the remaining neighbor nodes of the critical node are located, that is, the graph learning device where the remaining neighbor nodes of the critical node are located needs to store the mapping information of the node data of the critical node. The graph node stored in the graph learning device can be called a Master node, the node data of the Master node can be called Master data, and the node data of the graph node mapped to other graph learning devices can be called Mirror data of the graph node. In this case, the graph node mapped to other graph learning devices can also be called a Mirror node.

[0051] Taking the graph learning algorithm model as an example, the relationship graph in the graph learning algorithm model includes multiple nodes and edges. Taking node A as an example, the processing operator X+1 can only be executed on node A after the processing operator X is executed on node A and the neighboring nodes of node A. Moreover, when the processing operator X+1 is executed on node A, the processing operator X+1 is executed on node A after being processed by the processing operator X. This results in that for node A, all processing operators corresponding to the node cannot be executed simultaneously in the dimension of a single node. Therefore, only after all nodes or edges have been mapped can the processing operators corresponding to each node be executed in sequence. However, executing the processing operators corresponding to each node in sequence will take a lot of time, which greatly affects the efficiency of data processing. Therefore, an efficient data processing solution is urgently needed.

[0052] In order to improve the efficiency of data processing, the scheme of an embodiment of the present invention proposes a data processing method, which can determine several target objects and multiple processing operators corresponding to each target object, wherein the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator; multiple target objects are extracted from any data queue, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects; the processing result fed back by the second processing end is received, and the multiple target objects are unfrozen according to the processing result. The multiple target objects corresponding to any processing operator are accurately collected, and the processing operator corresponding to any data queue is concurrently executed on the multiple target objects, thereby improving the data processing efficiency.

[0053] See also Figure 1 , Figure 1 FIG. 1 shows a data processing flow chart of a data processing system provided by an embodiment of the present specification, such as Figure 1 As shown, the data processing system includes a first processing end and a second processing end;

[0054] The first processing end is configured to determine a number of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to a data queue corresponding to any processing operator; a plurality of target objects are extracted from any data queue and sent to the second processing end; a processing result fed back by the second processing end is received, and the plurality of target objects are unfrozen according to the processing result;

[0055] The second processing end is configured to receive multiple target objects sent by the first processing end; concurrently execute the processing operators corresponding to any data queue on the multiple target objects to obtain processing results; and feed back the processing results to the first processing end.

[0056] Apply the scheme of the embodiment of this specification to determine several target objects and multiple processing operators corresponding to each target object, wherein the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator; multiple target objects are extracted from any data queue, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects; the processing results fed back by the second processing end are received, and the multiple target objects are unfrozen according to the processing results. Multiple target objects corresponding to any processing operator are accurately aggregated, and the processing operators corresponding to any data queue are concurrently executed on these multiple target objects, thereby improving data processing efficiency.

[0057] One or more embodiments provided in this specification can be applied to graph learning scenarios, see Figure 2 , Figure 2 A schematic diagram of a system architecture applied to a graph learning scenario provided by an embodiment of the present specification is shown, and the system may include a first processing end 100 and multiple second processing ends 200. Multiple second processing ends 200 may establish a communication connection through the first processing end 100. The first processing end 100 may send a target object to multiple second processing ends 200.

[0058] The second processing end 200 is connected to the first processing end 100 via a network. The network provides a medium for a communication link between the second processing end and the first processing end. The network may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0059] The second processing end 200 can be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, the fifth edition of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The second processing end 200 can be based on the SDK (Software Development Kit) of the corresponding service provided by the first processing end, such as being developed based on the RTC SDK, etc. The second processing end 200 can be deployed in an electronic device, and needs to rely on the device to run or some apps in the device to run, etc. The electronic device can, for example, have a display screen and support information browsing, etc., such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications can also be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, mailbox second processing end, social platform software, etc.

[0060] The first processing end 100 may include servers that provide various services, such as a server that provides communication services to multiple second processing ends, a server for background training that provides support for models used on the second processing ends, and a server that processes data sent by the second processing ends.

[0061] It should be noted that the first processing end 100 can be implemented as a distributed server cluster composed of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0062] It is worth noting that the data processing method provided in the embodiments of this specification is generally executed by the first processing end, but in other embodiments of this specification, the second processing end may also have similar functions to the first processing end, thereby executing the data processing method provided in the embodiments of this specification. In other embodiments, the data processing method provided in the embodiments of this specification may also be executed jointly by the second processing end and the first processing end.

[0063] Specifically, the data processing method provided in this specification can be applied to named entity recognition in graph learning scenarios, such as processing enterprise relationship graphs to obtain the category names of each enterprise, or processing commodity relationship graphs to obtain the category names of each commodity, and so on.

[0064] In practical applications, the data processing method provided in this specification is also applied to data processing processes in other scenarios, such as pet identity recognition in image recognition scenarios, etc. Of course, it can also be applied to other scenarios. This specification does not limit the application scenarios of the data processing method.

[0065] Taking the image recognition scenario as an example, if the image to be recognized is too large, the image to be recognized can be distributed to each distributed system in the image recognition architecture for image recognition. Specifically, several sub-blocks of the image to be recognized and multiple processing operators corresponding to each sub-block are determined, wherein the sub-block carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the sub-block; when any processing operator is executed on the sub-block, the sub-block is frozen and added to the data queue corresponding to any processing operator; multiple sub-blocks are extracted from any data queue, and the multiple sub-blocks are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple sub-blocks; the processing results fed back by the second processing end are received, and the multiple sub-blocks are unfrozen according to the processing results. Accurately aggregate multiple sub-blocks corresponding to any processing operator, and concurrently execute the processing operator corresponding to any data queue on these multiple sub-blocks, thereby improving the efficiency of image recognition.

[0066] See also Figure 3 , Figure 3 A flowchart of a data processing method provided by an embodiment of the present specification is shown. The data processing method is applied to a first processing end and specifically includes the following steps:

[0067] Step 302: Determine a number of target objects and a plurality of processing operators corresponding to each target object, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object.

[0068] In one or more embodiments of the present specification, in order to accurately determine multiple target objects that can be executed concurrently among several target objects, it is necessary to determine several target objects and multiple processing operators corresponding to the several target objects before processing.

[0069] Specifically, the target object refers to an object that needs to be processed, including but not limited to points, edges, sub-blocks in a picture, etc., and several target objects can also be understood as multiple target objects. The processing operator can be a function, an instruction, an execution code, etc., such as matrix multiplication (matrix multiply), which is selected according to the actual situation. The embodiments of this specification do not impose any restrictions on this. A target object can correspond to multiple processing operators, and the target object can carry an execution sequence for these multiple processing operators. The execution sequence includes the order of multiple processing operators executed on the target object. For example, the feature vector of the target object is 500-dimensional. After the processing operator X is executed on the feature vector of the target object, the feature vector of the target object is reduced to 200 dimensions. After that, the processing operator X+1 is executed on the 200-dimensional feature vector of the target object to obtain a 100-dimensional feature vector of the target object.

[0070] Exemplarily, node A corresponds to four processing operators, which are matrix multiply1, matrix multiply2, matrix multiply3, and matrix multiply4. At the same time, node A carries an execution sequence A for the four processing operators, and the execution sequence A can be {matrix multiply1, matrix multiply3, matrix multiply2, matrix multiply4}, which means that matrix multiply1 is first executed on node A; after executing matrix multiply1, matrix multiply3 is continued to be executed on node A; after executing matrix multiply3, matrix multiply2 is continued to be executed on node A; after executing matrix multiply2, matrix multiply4 is continued to be executed on node A.

[0071] In actual applications, there are many ways for the first processing end to determine a number of target objects and a plurality of processing operators corresponding to each target object. The specific selection is made according to the actual situation, and the embodiments of this specification do not impose any limitation on this.

[0072] In a possible implementation of the present specification, the first processing end may determine a number of target objects that need to be processed, poll a plurality of processing operators, and obtain a plurality of processing operators corresponding to the plurality of target objects.

[0073] For example, assume that there are four objects and six processing operators, the four objects are node A, node B, node C and node D, and the six processing operators are matrix multiply1, matrix multiply2, matrix multiply3, matrix multiply4, matrix multiply5 and matrix multiply6. The first processing end determines that the target objects are node A and node B. For node A, the first processing end sequentially polls matrix multiply1-matrixmultiply6 to determine that the processing operators corresponding to node A are matrix multiply1 and matrix multiply4; for node B, the first processing end sequentially polls matrix multiply1-matrix multiply6 to determine that the processing operators corresponding to node B are matrix multiply4 and matrix multiply5.

[0074] In another possible implementation of the present specification, each target object carries a processing operator tag. After the first processing end determines a number of target objects, it can determine multiple processing operators corresponding to each of the target objects based on the processing operator tags carried by the target objects.

[0075] For example, assume that there are four objects and six processing operators, the four objects are node A, node B, node C and node D, and the six processing operators are matrix multiply1, matrix multiply2, matrix multiply3, matrix multiply4, matrix multiply5 and matrix multiply6. The first processing end determines that the target objects are node A and node B, wherein node A carries processing operator labels 1 and 4, and node B carries processing operator labels 4 and 5. For node A, the processing operators corresponding to processing operator labels 1 and 4 are matched among the six processing operators from matrix multiply1 to matrix multiply6, and the processing operators corresponding to node A are determined to be matrix multiply1 and matrix multiply4. Similarly, the processing operators corresponding to node B can be determined to be matrix multiply4 and matrix multiply5.

[0076] In one embodiment of the present specification, the execution sequence corresponding to each target object may be pre-set based on prior knowledge, or may be set based on the operation requirement received by the first processing end, that is, before the above step of determining a plurality of target objects and a plurality of processing operators corresponding to the target objects, the following steps may be further included:

[0077] For any target object, according to the operation requirements, an execution sequence of multiple processing operators corresponding to the target object is set, wherein the execution sequence includes the execution order of the multiple processing operators;

[0078] Set corresponding data queues for multiple processing operators respectively.

[0079] Specifically, the operation requirement may be a requirement for the execution order of processing operators in the data processing process, or may be any other requirement, including but not limited to an execution time requirement. The specific selection is made according to the actual situation, and the embodiments of this specification do not impose any limitation on this.

[0080] For example, assume that node A corresponds to four processing operators, which are matrixmultiply1, matrixmultiply2, matrixmultiply3, and matrixmultiply4. The received operation requirement is "for node A, first execute matrixmultiply1; after executing matrixmultiply1, continue to execute matrixmultiply3; after executing matrixmultiply3, continue to execute matrixmultiply2; after executing matrixmultiply2, continue to execute matrixmultiply4". According to the above operation requirement, the execution sequence A of node A can be set to {matrixmultiply1, matrixmultiply3, matrixmultiply2, matrixmultiply4}.

[0081] In practical applications, after determining a number of target objects and a plurality of processing operators corresponding to the target objects, corresponding data queues may be set for the plurality of processing operators respectively.

[0082] Referring to the above example, node A corresponds to four processing operators, namely matrix multiply1, matrix multiply2, matrix multiply3 and matrix multiply4. Data queue 1 is set for matrix multiply1, data queue 2 is set for matrix multiply2, data queue 3 is set for matrix multiply3, and data queue 4 is set for matrix multiply4.

[0083] By applying the solution of the embodiments of this specification, for any target object, according to the operating requirements, the execution sequence of multiple processing operators corresponding to the target object is set, and corresponding data queues are set for the multiple processing operators respectively, so that the multiple target objects corresponding to any processing operator can be processed accurately and quickly subsequently.

[0084] Step 304: When any processing operator is executed on the target object, the target object is frozen and the target object is added to a data queue corresponding to any processing operator.

[0085] In one or more embodiments of the present specification, after the first processing end determines a number of target objects and a plurality of processing operators corresponding to each of the target objects, when any processing operator is executed on the target object, the target object can be frozen and added to a data queue corresponding to any processing operator.

[0086] Specifically, freezing can also be understood as dormancy. Freezing a target object means pausing execution of a corresponding processing operator on the target object when executing any processing operator on the target object. Any processing operator refers to any one of multiple processing operators corresponding to the target object, which is selected according to actual conditions, and this specification embodiment does not impose any limitation on this.

[0087] Exemplarily, it is assumed that node A corresponds to the four processing operators matrix multiply1, matrix multiply2, matrix multiply3, and matrix multiply4. When matrix multiply2 is executed on node A, the first processing end freezes node A so that node A is in a dormant state, and the first processing end no longer executes other processing operators corresponding to node A. At this time, the first processing end adds node A to the data queue 2 corresponding to matrix multiply2; assuming that node B corresponds to the three processing operators matrix multiply2, matrix multiply3, and matrix multiply4, when node B executes matrix multiply2, the first processing end freezes node B so that node B is in a dormant state, and the first processing end no longer executes other processing operators corresponding to node B. At this time, the first processing end adds node B to the data queue 2 corresponding to matrix multiply2, and at this time, data queue 2 includes node A and node B.

[0088] In actual applications, there are many ways for the first processing end to add the target object to the data queue corresponding to any processing operator, which can be selected based on actual conditions, and the embodiments of this specification do not impose any limitation on this.

[0089] In a possible implementation of the present specification, the first processing end may poll multiple data queues respectively, determine the data queue corresponding to the processing operator currently executed by the frozen target object, and add the target object to the data queue.

[0090] In another possible implementation of the present specification, the data queue corresponding to the target object may be searched according to the preset operator identifier corresponding to the processing operator. That is, the above step of adding the target object to the data queue corresponding to any processing operator may include the following steps:

[0091] Get the preset operator ID corresponding to any processing operator;

[0092] According to the preset operator identifier, searching for the data queue corresponding to the preset operator identifier in multiple data queues;

[0093] Add the target object to the data queue corresponding to the preset operator ID.

[0094] Specifically, the preset operator identifier refers to a pre-set operator identifier, which can uniquely identify the corresponding processing operator. For example, the preset operator identifier corresponding to the processing operator matrix multiply1 is "1".

[0095] For example, referring to the example of step 304 above, when node A executes matrix multiply2, it can obtain the preset operator identifier "2" corresponding to matrix multiply2, and search for the data queue corresponding to the preset operator identifier "2" in data queue 1, data queue 2, data queue 3 and data queue 4, and obtain the search result as data queue 2. At this time, the first processing end can add node A to the data queue 2 corresponding to the preset operator identifier "2".

[0096] By applying the solution of the embodiments of this specification, a preset operator identifier corresponding to any processing operator is obtained; based on the preset operator identifier, a data queue corresponding to the preset operator identifier is searched among multiple data queues; and a target object is added to the data queue corresponding to the preset operator identifier, thereby improving the efficiency of searching for the data queue corresponding to the processing operator and further improving the efficiency of data processing.

[0097] Step 306: extract multiple target objects from any data queue, and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects.

[0098] In one or more embodiments of the present specification, a first processing end determines a number of target objects and a plurality of processing operators corresponding to each of the target objects, and when the target object executes any processing operator, freezes the target object, and adds the target object to a data queue corresponding to any processing operator. Multiple target objects can then be extracted from any data queue, and the multiple target objects can be sent to a second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects.

[0099] Exemplarily, data queue 1 corresponding to matrix multiply1 includes node A, node B, node C, and node D; data queue 2 corresponding to matrix multiply2 includes node E, node F, and node G. The first processing end may extract multiple target objects from data queue 1, or may extract multiple target objects from data queue 2, and the number of target objects extracted by the first processing end is selected according to actual conditions, and this specification embodiment does not impose any limitation on this.

[0100] In one or more embodiments of this specification, since the first processing end needs to send the extracted target objects to the second processing end before the second processing end can execute the processing operators corresponding to the multiple target objects, the entire data processing process will take a lot of time when the network bandwidth is constant. Therefore, in an embodiment of this specification, the first processing end can use multiple threads, so that at least one thread sends multiple target objects to the second processing end, and while the second processing end is concurrently executing processing operators on the multiple target objects, at least another thread is sending other target objects to the second processing end. That is, the above-mentioned steps of extracting multiple target objects from any data queue and sending the multiple target objects to the second processing end so that the second processing end concurrently executes the processing operators corresponding to any data queue on the multiple target objects can include the following steps:

[0101] Multiple threads are used to extract multiple target objects from any data queue in sequence, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue for the multiple target objects sent by at least one thread, while at least another thread is sending multiple target objects.

[0102] This description is that in one or more embodiments, since the number that each thread can extract is limited, multiple threads can be used to extract multiple target objects from the data queue. In order to avoid multiple threads repeatedly extracting the same target object, in the embodiments of this specification, multiple threads can be used to extract multiple target objects from the data queue in sequence. Further, the number of threads is specifically selected according to actual conditions, and this embodiment of the specification does not impose any limitation on this.

[0103] Exemplarily, it is assumed that thread 1 can extract two target objects from the data queue at a time, and thread 2 can extract three target objects from the data queue at a time. Data queue 1 includes node A, node B, node C, node D, and node E. The first processing end can use thread 1 to extract node A and node B from data queue 1, and use thread 2 to extract node C, node D, and node E. After thread 1 extracts node A and node B, it sends node A and node B to the second processing end. After the second processing end receives node A and node B, it simultaneously executes matrix multiply1 corresponding to data queue 1 on node A and node B. At the same time, thread 2 is sending node C, node D, and node E to the second processing end.

[0104] By applying the solution of the embodiments of this specification, multiple threads are used to extract multiple target objects from any data queue in sequence, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue for the multiple target objects sent by at least one thread, while at least another thread is sending multiple target objects, so that the transmission of the target objects and the processing of the target objects can be carried out concurrently, which can effectively overlap the network impact and improve the efficiency of data processing.

[0105] In practical applications, the target objects may be points and edges of a relationship graph in a graph learning algorithm model, and the processing operator is an operator that performs dimensionality reduction processing on feature vectors of points and / or edges in the graph learning algorithm model. The above-mentioned step of extracting multiple target objects from any data queue and sending the multiple target objects to the second processing end so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects may include the following steps:

[0106] Extract multiple points and / or edges from any data queue;

[0107] Obtain the feature dimensions of multiple points and / or edges respectively;

[0108] Convert multiple points and / or edges into a matrix format according to the feature dimension;

[0109] The plurality of points and / or edges in the matrix format are sent to the second processing end, so that the second processing end concurrently executes a processing operator corresponding to any data queue on the plurality of points and / or edges.

[0110] In one or more embodiments of the present specification, the feature vectors of points and / or edges have corresponding feature dimensions, and the first processing end may convert the extracted points and / or edges into a matrix format for processing by the second processing end.

[0111] For example, if the feature vector A of node A is A m*n , the eigenvector B of node B is B m*n , the eigenvector C of node C is C m*n , then A m*n As the first column of the matrix, B m*n As the second column of the matrix, C m*n As the third column of the matrix, multiple points and / or edges converted into matrix format can be obtained, and the multiple points and / or edges in matrix format are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple points and / or edges in matrix format, thereby improving the processing efficiency of the second processing end.

[0112] By applying the solution of the embodiments of this specification, multiple points and / or edges are extracted from a data queue; the characteristic dimensions of the multiple points and / or edges are respectively obtained; according to the characteristic dimensions, the multiple points and / or edges are converted into a matrix format; the multiple points and / or edges in the matrix format are sent to a second processing end to facilitate processing by the second processing end, thereby improving the efficiency of data processing.

[0113] Step 308: receiving the processing result fed back by the second processing end, and unfreezing the multiple target objects according to the processing result.

[0114] In one or more embodiments of the present specification, a first processing end determines a number of target objects and a plurality of processing operators corresponding to each of the target objects, freezes the target objects when executing any processing operator on the target objects, adds the target objects to a data queue corresponding to any processing operator, extracts a plurality of target objects from any data queue, and sends the plurality of target objects to a second processing end, so that the second processing end concurrently executes a processing operator corresponding to any data queue on the plurality of target objects. Furthermore, the second processing end can receive processing results fed back by the second processing end, and unfreeze the plurality of target objects according to the processing results.

[0115] Specifically, unfreezing can also be understood as releasing dormancy. After the first processing end receives the processing result fed back by the second processing end, it can unfreeze multiple target objects. After the unfreezing is completed, the first processing end can continue to execute respective processing operators on the multiple target objects. For example, when executing matrix multiply1 on node A, freeze node A. Further, after unfreezing node A, the next processing operator matrixmultiply2 of matrix multiply1 can continue to be executed on node A.

[0116] Applying the scheme of the embodiment of this description, several target objects and multiple processing operators corresponding to each target object are determined, wherein the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator; multiple target objects are extracted from any data queue, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects; the processing result fed back by the second processing end is received, and the multiple target objects are unfrozen according to the processing result. Multiple target objects corresponding to any processing operator are accurately gathered, and the processing operator corresponding to any data queue is concurrently executed on these multiple target objects, thereby improving data processing efficiency.

[0117] In practical applications, after the first processing end receives the processing result fed back by the second processing end, the execution status of the plurality of target objects may be updated. That is, after the step of receiving the processing result fed back by the second processing end, the following steps may be further included:

[0118] The execution states of the multiple target objects are updated according to the processing results fed back by the second processing end.

[0119] Specifically, the execution status of the target object can record whether the current target object is in a frozen state or an unfrozen state, and can also record which processing operator the target object is currently executing. The first processing end can update the execution status of multiple target objects by marking multiple target objects, such as marking node A as "frozen"; or by updating multiple target objects in the execution status table, such as adding node A to the frozen state table. The specific selection is based on the actual situation, and the embodiments of this specification do not make any limitation on this.

[0120] By applying the solution of the embodiment of this specification, the execution status of multiple target objects is updated according to the processing results fed back by the second processing end, so that the multiple target objects can clearly understand the current processing operator and then execute the next processing operator of the current processing operator in the execution sequence, thereby improving data processing efficiency.

[0121] See also Figure 4 , Figure 4 A flowchart of another data processing method provided by an embodiment of the present specification is shown. The data processing method is applied to a second processing end and specifically includes the following steps:

[0122] Step 402: Receive multiple target objects sent by the first processing end.

[0123] Among them, the target object is determined by the first processing end as several target objects and multiple processing operators corresponding to each target object. When any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator, and is extracted from any data queue. The target object carries the execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object.

[0124] Step 404: concurrently execute the processing operator corresponding to any data queue on multiple target objects to obtain processing results.

[0125] Step 406: Feedback the processing result to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

[0126] Specifically, concurrent execution means that the second processing end executes corresponding processing operators on multiple target objects at the same time. The execution result may be that multiple target objects have been processed. Of course, the processing result may also carry processing time, etc. The specific selection is based on actual conditions, and this specification does not impose any limitations on this.

[0127] Exemplarily, the second processing end receives three target objects sent by the first processing end, which are node A, node B and node C. The second processing end executes matrixmultiply1 on node A, node B and node C simultaneously, and feeds back the results of processing of node A, node B and node C to the first processing end, so that the first processing end unfreezes node A, node B and node C according to the processing results.

[0128] By applying the solution of the embodiment of this specification, multiple target objects sent by the first processing end are received, and processing operators corresponding to any data queue are concurrently executed on the multiple target objects to obtain processing results, and the processing results are fed back to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing results, thereby realizing the concurrent execution of processing operators corresponding to multiple target objects and improving data processing efficiency.

[0129] In practical applications, since graph learning algorithms have multiple layers of matrix multiplication functions, such as N functions from matrix multiplication function X to matrix multiplication function X+N. When matrix multiplication function X+1 is executed on the feature vector of any node, matrix multiplication function X+1 is executed on the feature vector of the node after being processed by matrix multiplication function X. For example, the feature vector of node A is 500-dimensional. After matrix multiplication function X is executed on the feature vector of node A, the feature vector of node A is reduced to 200-dimensional. After that, matrix multiplication function X+1 is executed on the 200-dimensional feature vector of node A to obtain the 100-dimensional feature vector of node A. This results in the inability to directly perform parallel processing on the dimension of a single node for this node.

[0130] The following combination Figure 5 , taking the application of the data processing method provided in this specification in the graph learning scenario as an example, the data processing method is further described. Among them, the first processing end can be the CPU side, the second processing end can be the GPU side, the target object can be a node or an edge, and the processing operator can be a matrix multiplication function. Figure 5 A processing flow chart of a data processing method provided by an embodiment of the present specification is shown. The method is applied to the CPU side and specifically includes the following steps:

[0131] Step 502: For any node, according to the operation requirements, an execution sequence of multiple matrix multiplication functions corresponding to the node is set, wherein the execution sequence includes the execution order of the multiple matrix multiplication functions.

[0132] Step 504: respectively set corresponding data queues for multiple matrix multiplication functions.

[0133] Specifically, for all nodes in the graph, matrix multiply1 is first executed, and then matrix multiply2 is executed for all nodes in the graph. The two matrix multiply functions matrix multiply1 and matrix multiply2 have the same function, which is to reduce the dimension of the feature vectors of each node in the graph, but the two matrix multiply functions are actually two execution stages. At this time, one data queue can be allocated to each of matrix multiply1 and matrix multiply2.

[0134] Step 506: Determine a number of nodes and a number of matrix multiplication functions corresponding to each of the nodes, wherein the nodes carry execution sequences for the multiple matrix multiplication functions, and each matrix multiplication function corresponds to a data queue.

[0135] Specifically, the matrix multiplication function is a function that performs dimensionality reduction processing on the feature vectors of each node. For each node in the graph, there is an execution sequence. For node A and node B, the execution sequence can be {execute matrixmultiply1 on point A, execute matrixmultiply1 on point B, execute matrixmultiply2 on point A, execute matrixmultiply2 on point B}. In other words, each node can be regarded as an independent individual, and these nodes can automatically execute forward according to the execution sequence.

[0136] Step 508: When any matrix multiplication function is executed on a node, the node is frozen and the node is added to a data queue corresponding to any matrix multiplication function.

[0137] Specifically, when node A executes matrix multiply1, the execution of matrix multiply1 on node A can be stopped, so that node A enters a sleep state, which can also be understood as a frozen state, and node A is added to the data queue corresponding to matrix multiply1. In the above manner, the nodes on the data queue corresponding to matrix multiply1 are all nodes that execute matrix multiply1.

[0138] Step 510: Utilize multiple threads to sequentially extract multiple nodes from any data queue, and send the multiple nodes to the GPU side, so that the GPU side concurrently executes the matrix multiplication function corresponding to any data queue for the multiple nodes sent by at least one thread, while at least another thread is sending multiple matrix multiplication functions.

[0139] Specifically, the CPU can use multiple threads to sequentially extract multiple nodes from the data queue corresponding to matrix multiply1, and convert the feature vectors of these multiple nodes on the CPU side into a matrix format. Assuming that for the matrix multiply1 function, each point is a 100-dimensional feature input, and according to the 100-dimensional feature input, each point is converted into a matrix format used by the GPU. The CPU uses multiple threads to sequentially extract 64 nodes from the data queue, and sends the 64 nodes to the GPU side, so that the GPU side concurrently executes matrix multiply1 on these 64 nodes.

[0140] Step 512: Receive the processing result fed back by the GPU side, and unfreeze multiple nodes according to the processing result.

[0141] Step 514: Update the execution status of multiple nodes according to the processing results fed back by the GPU side.

[0142] Specifically, after the GPU side finishes executing 64 nodes, the CPU side unfreezes the 64 nodes and updates the status of these nodes: matrix multiply1 has been executed, and the next instruction matrix multiply2 will be executed next.

[0143] By applying the solution of the embodiments of this specification, it is possible to combine multiple points and / or edges and concurrently execute the same matrix multiplication function on multiple points and / or edges, thereby solving the problem that graph learning cannot be directly parallelized on a single point / edge dimension when using acceleration devices such as GPUs. This achieves the overlap of computing and communication, performs batch processing on points / edges, and improves data processing efficiency.

[0144] Corresponding to the above-mentioned data processing method embodiment applied to the first processing end, this specification also provides a data processing device embodiment, which is applied to the first processing end. Figure 6 FIG. 1 is a schematic diagram showing the structure of a data processing device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0145] A determination module 602 is configured to determine a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target object carries an execution sequence for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object;

[0146] A freezing module 604 is configured to freeze the target object when any processing operator is executed on the target object, and add the target object to a data queue corresponding to any processing operator;

[0147] The sending module 606 is configured to extract multiple target objects from any data queue and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects;

[0148] The unfreezing module 608 is configured to receive the processing result fed back by the second processing end, and unfreeze the multiple target objects according to the processing result.

[0149] Optionally, the target object is a point and an edge of a relationship graph in a graph learning algorithm model, and the processing operator is an operator that performs dimensionality reduction processing on feature vectors of points and / or edges in the graph learning algorithm model;

[0150] The sending module 606 is further configured to extract multiple points and / or edges from any data queue; obtain the feature dimensions of each of the multiple points and / or edges; convert the multiple points and / or edges into a matrix format according to the feature dimensions; and send the multiple points and / or edges in the matrix format to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple points and / or edges.

[0151] Optionally, the sending module 606 is further configured to use multiple threads to extract multiple target objects from any data queue in sequence, and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue for the multiple target objects sent by at least one thread, while at least another thread is sending multiple target objects.

[0152] Optionally, the device also includes: a setting module, configured to set, for any target object, an execution sequence of multiple processing operators corresponding to the target object according to operation requirements, wherein the execution sequence includes the execution order of the multiple processing operators; and set corresponding data queues for the multiple processing operators respectively.

[0153] Optionally, the device further includes: an updating module configured to update the execution status of the plurality of target objects according to the processing result fed back by the second processing end.

[0154] Optionally, the freezing module 604 is further configured to obtain a preset operator identifier corresponding to any processing operator; search for a data queue corresponding to the preset operator identifier in multiple data queues according to the preset operator identifier; and add the target object to the data queue corresponding to the preset operator identifier.

[0155] Apply the scheme of the embodiment of this specification to determine several target objects and multiple processing operators corresponding to each target object, wherein the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object; when any processing operator is executed on the target object, the target object is frozen and added to the data queue corresponding to any processing operator; multiple target objects are extracted from any data queue, and the multiple target objects are sent to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any data queue on the multiple target objects; the processing results fed back by the second processing end are received, and the multiple target objects are unfrozen according to the processing results. Multiple target objects corresponding to any processing operator are accurately aggregated, and the processing operators corresponding to any data queue are concurrently executed on these multiple target objects, thereby improving data processing efficiency.

[0156] The above is a schematic scheme of a data processing device of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the data processing device can be referred to the description of the technical scheme of the above data processing method.

[0157] Corresponding to the above-mentioned data processing method embodiment applied to the second processing end, this specification also provides a data processing device embodiment, which is applied to the second processing end. Figure 7 FIG. 2 shows a schematic diagram of the structure of another data processing device provided by an embodiment of the present specification. Figure 7 As shown, the device comprises:

[0158] The receiving module 702 is configured to receive multiple target objects sent by the first processing end, wherein the target object is determined by the first processing end as a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, and when any processing operator is executed on the target object, the target object is frozen, and the target object is added to a data queue corresponding to any processing operator, and is extracted from any data queue, the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on a feature vector of the target object;

[0159] The processing module 704 is configured to concurrently execute a processing operator corresponding to any data queue on multiple target objects to obtain a processing result;

[0160] The feedback module 706 is configured to feed back the processing result to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

[0161] The scheme of the embodiments of this specification is applied to receive multiple target objects sent by a first processing end, wherein the target object is determined by the first processing end as a number of target objects and a plurality of processing operators corresponding to each target object; when any processing operator is executed on the target object, the target object is frozen, and the target object is added to a data queue corresponding to any processing operator, and extracted from any data queue, the target object carries an execution sequence for multiple processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator that performs dimensionality reduction processing on a feature vector of the target object; the processing operator corresponding to any data queue is concurrently executed on the multiple target objects to obtain a processing result; the processing result is fed back to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result, thereby realizing the concurrent execution of the processing operator corresponding to any data queue on the multiple target objects, thereby improving the data processing efficiency.

[0162] The above is a schematic scheme of a data processing device of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the data processing device can be referred to the description of the technical scheme of the above data processing method.

[0163] Figure 8 The block diagram of a computing device provided by an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and the database 850 is used to store data.

[0164] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world microwave interconnection access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0165] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0166] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 800 may also be a mobile or stationary server.

[0167] The processor 820 is used to execute the following computer executable instructions, which, when executed by the processor, implement the above Figure 3 or Figure 4 The steps of the data processing method are provided.

[0168] The above is a schematic solution of a computing device of this embodiment. It should be noted that the technical solution of the computing device is similar to the above Figure 3 or Figure 4 The technical solutions of the data processing methods provided belong to the same concept. For details not described in detail in the technical solutions of the computing device, please refer to the above Figure 3 or Figure 4 A description of the technical solution of the data processing method provided.

[0169] An embodiment of the present specification also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned Figure 3 or Figure 4 The steps of the data processing method are provided.

[0170] The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium is similar to the above Figure 3 or Figure 4 The technical solutions of the data processing methods provided belong to the same concept. For details not described in detail in the technical solutions of the storage medium, please refer to the above Figure 3 or Figure 4 A description of the technical solution of the data processing method provided.

[0171] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the above Figure 3 or Figure 4 The steps of the data processing method are provided.

[0172] The above is an illustrative solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program is the same as the above Figure 3 or Figure 4 The technical solutions of the data processing methods provided belong to the same concept. For details not described in detail in the technical solutions of the computer programs, please refer to the above Figure 3 or Figure 4 A description of the technical solution of the data processing method provided.

[0173] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0174] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0175] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0176] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0177] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A data processing method, applied to a first processing end, comprising: Determine a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target objects carry execution sequences for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object, and determining the plurality of processing operators corresponding to each of the target objects comprises determining the plurality of processing operators corresponding to each of the target objects according to a processing operator label carried by each of the target objects; When any processing operator is executed on the target object, freezing the target object and adding the target object to a data queue corresponding to the any processing operator; Extracting multiple target objects from any data queue, and sending the multiple target objects to a second processing end, so that the second processing end concurrently executes processing operators corresponding to any data queue on the multiple target objects; The processing result fed back by the second processing end is received, and the multiple target objects are unfrozen according to the processing result.

2. According to the method of claim 1, the target object is a point and an edge of a relationship graph in a graph learning algorithm model, and the processing operator is an operator in the graph learning algorithm model that performs dimensionality reduction processing on feature vectors of points and / or edges; The step of extracting multiple target objects from any data queue, and sending the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operators corresponding to any data queue on the multiple target objects, includes: Extract multiple points and / or edges from any data queue; Obtaining characteristic dimensions of each of the plurality of points and / or edges respectively; According to the characteristic dimension, converting the plurality of points and / or edges into a matrix format; The plurality of points and / or edges in the matrix format are sent to a second processing end, so that the second processing end concurrently executes a processing operator corresponding to any one of the data queues on the plurality of points and / or edges.

3. According to the method of claim 1, the step of extracting multiple target objects from any data queue and sending the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operators corresponding to any data queue on the multiple target objects, comprises: Utilize multiple threads to extract multiple target objects from any one of the data queues in sequence, and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operator corresponding to any one of the data queues for the multiple target objects sent by at least one thread, while at least another thread is sending multiple target objects.

4. The method according to claim 1, before the step of determining a plurality of target objects and a plurality of processing operators corresponding to the target objects, further comprising: For any target object, according to the operation requirements, an execution sequence of multiple processing operators corresponding to the target object is set, wherein the execution sequence includes the execution order of the multiple processing operators; Corresponding data queues are respectively set for the multiple processing operators.

5. The method according to claim 1, after the step of receiving the processing result fed back by the second processing end, further comprising: The execution states of the multiple target objects are updated according to the processing results fed back by the second processing end.

6. According to the method of claim 1, the step of adding the target object to the data queue corresponding to any processing operator comprises: Obtaining a preset operator identifier corresponding to any of the processing operators; According to the preset operator identifier, searching for a data queue corresponding to the preset operator identifier in multiple data queues; Add the target object to the data queue corresponding to the preset operator identifier.

7. A data processing method, applied to a second processing end, the method comprising: Receive multiple target objects sent by a first processing end, wherein the target objects are determined by the first processing end as a plurality of target objects and a plurality of processing operators corresponding to the target objects, respectively. Determining the plurality of processing operators corresponding to the target objects includes determining the plurality of processing operators corresponding to the target objects according to processing operator labels carried by the target objects, freezing the target objects when any processing operator is executed on the target objects, and adding the target objects to a data queue corresponding to any processing operator, extracting the target objects from any data queue, wherein the target objects carry execution sequences for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object; Concurrently executing the processing operator corresponding to any one of the data queues on the multiple target objects to obtain a processing result; The processing result is fed back to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

8. A data processing device, applied to a first processing end, comprising: A determination module is configured to determine a plurality of target objects and a plurality of processing operators corresponding to each of the target objects, wherein the target objects carry execution sequences for the plurality of processing operators, each processing operator corresponds to a data queue, the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object, and determining the plurality of processing operators corresponding to each of the target objects comprises determining the plurality of processing operators corresponding to each of the target objects according to a processing operator label carried by each of the target objects; A freezing module, configured to freeze the target object when any processing operator is executed on the target object, and add the target object to a data queue corresponding to any processing operator; A sending module is configured to extract multiple target objects from any data queue and send the multiple target objects to the second processing end, so that the second processing end concurrently executes the processing operators corresponding to any data queue on the multiple target objects; The unfreezing module is configured to receive the processing result fed back by the second processing end, and unfreeze the multiple target objects according to the processing result.

9. A data processing device, applied to a second processing end, the device comprising: A receiving module is configured to receive multiple target objects sent by a first processing end, wherein the target objects are determined by the first processing end as a plurality of target objects and a plurality of processing operators corresponding to the target objects, and determining the plurality of processing operators corresponding to the target objects comprises determining the plurality of processing operators corresponding to the target objects according to processing operator labels carried by the target objects, freezing the target objects when any processing operator is executed on the target objects, and adding the target objects to a data queue corresponding to any processing operator, and extracting the target objects from any data queue, wherein the target objects carry execution sequences for the plurality of processing operators, each processing operator corresponds to a data queue, and the processing operator is an operator for performing dimensionality reduction processing on a feature vector of the target object; A processing module, configured to concurrently execute a processing operator corresponding to any one of the data queues on the multiple target objects to obtain a processing result; The feedback module is configured to feed back the processing result to the first processing end, so that the first processing end unfreezes the multiple target objects according to the processing result.

10. A data processing system, comprising a first processing end and a second processing end; The first processing end is configured to determine a plurality of target objects and a plurality of processing operators corresponding to the target objects, wherein: The target object carries an execution sequence for the multiple processing operators, each processing operator corresponds to a data queue, the processing operator is an operator that performs dimensionality reduction processing on the feature vector of the target object, and determining the multiple processing operators corresponding to each target object includes determining the multiple processing operators corresponding to each target object according to the processing operator labels carried by each target object; when any processing operator is executed on the target object, freezing the target object and adding the target object to the data queue corresponding to any processing operator; extracting multiple target objects from any data queue, and sending the multiple target objects to the second processing end; receiving a processing result fed back by the second processing end, and unfreezing the multiple target objects according to the processing result; The second processing end is configured to receive a plurality of target objects sent by the first processing end; Concurrently executing the processing operator corresponding to any one of the data queues on the multiple target objects to obtain a processing result; Feedback the processing result to the first processing end.

11. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data processing method described in any one of claims 1 to 6 or claim 7 are implemented.

12. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the data processing method described in any one of claims 1 to 6 or claim 7.

Citation Information

Patent Citations

  • Information processing method and system, computer system and computer readable medium

    CN111198769A

  • Task handling method and device and medium

    CN112148455A

  • Data processing method, device and system and computer storage medium

    CN113419824A

  • Live broadcast data processing method, device, terminal, server and storage medium

    CN113613028A

  • Methods, systems, and apparatus for processing data event streams in a database environment

    US20160078077A1