Method, device, equipment and program product for adjusting parameters of component

By obtaining the target component type and adjusting the target parameters in the application development framework, and determining and adjusting the target components, the confusion problem during component parameter adjustment is solved, and the accuracy and stability of parameter adjustment are achieved.

CN119718407APending Publication Date: 2025-03-28FACE CUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411844669.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the application development framework, when adjusting component parameters, component parameters of non-target component types are easily changed, resulting in confusion in parameter adjustment.

Method used

By obtaining the target component type and target adjustments for target parameters, determine the target components that belong to the target component type, and adjust the target parameters of the target component according to the target adjustment to ensure that only the parameters of the target component are changed.

Benefits of technology

Accurate adjustment of target component parameters is achieved, component parameters of non-target component types are avoided to be changed, and the accuracy and stability of parameter adjustment are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718407A_ABST
    Figure CN119718407A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and device for adjusting parameters of a component, equipment, a storage medium and a computer program product. The method includes obtaining a target component type and a target adjustment for a target parameter. The method also includes determining, from the plurality of components, at least one target component belonging to the target component type. The method further includes adjusting a target parameter in the at least one target component according to a target adjustment for the target parameter. According to the method disclosed by the embodiment of the invention, the component parameters can be accurately adjusted according to the component types, so that the efficiency of adjusting the component parameters is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of computers, and more particularly to methods, devices, apparatuses, computer-readable storage media, and computer program products for adjusting parameters of components. Background Art

[0002] Application development frameworks are used to simplify and accelerate the application creation process. By integrating a series of tools and functions, developers can focus more on building core business logic and intelligent rules without having to build the underlying architecture from scratch. From the perspective of component orchestration, these frameworks usually use graph structures to organize the various parts. For example, artificial intelligence application development frameworks belong to this category.

[0003] The application development framework allows users to organize components in a graphical manner, that is, to build the application workflow by defining nodes and edges so that the orchestrated components can be presented in a visual manner. The framework can describe and arrange component interactions within the application. Summary of the invention

[0004] According to example embodiments of the present disclosure, a method, apparatus, device, computer storage medium, and computer program product for adjusting a parameter of a component are provided.

[0005] In a first aspect of the present disclosure, a method for adjusting a parameter of a component is provided, the method comprising obtaining a target component type and a target adjustment for a target parameter. The method further comprises determining at least one target component belonging to the target component type from a plurality of components. The method further comprises adjusting a target parameter in the at least one target component according to the target adjustment for the target parameter.

[0006] In a second aspect of the present disclosure, there is provided an apparatus for adjusting a parameter of a component, the apparatus comprising an acquisition module configured to acquire a target component type and a target adjustment for a target parameter. The apparatus further comprises a determination module configured to determine at least one target component belonging to the target component type from a plurality of components. The apparatus further comprises an adjustment module configured to adjust a target parameter in at least one target component according to the target adjustment for the target parameter.

[0007] In a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processing unit; and at least one memory, wherein the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method described in the first aspect of the present disclosure.

[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which has machine-executable instructions stored thereon, and when the machine-executable instructions are executed by a device, the device performs the method described in the first aspect of the present disclosure.

[0009] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer executable instructions, wherein the computer executable instructions implement the method described according to the first aspect of the present disclosure when executed by a processor.

[0010] The invention summary is provided to introduce a series of concepts in a simplified form, which will be further described in the specific embodiments below. The invention summary is not intended to identify the key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A schematic diagram illustrating an example environment in which embodiments of the present disclosure can be implemented;

[0012] Figure 2 A flow chart showing a method for adjusting parameters of a component according to an embodiment of the present disclosure is shown;

[0013] Figure 3 A schematic diagram of adjusting target parameters according to an embodiment of the present disclosure is shown;

[0014] Figure 4 A schematic diagram for adjusting parameters of a component according to an embodiment of the present disclosure is shown;

[0015] Figure 5 A schematic diagram for adjusting parameters of a component according to an embodiment of the present disclosure is shown;

[0016] Figure 6 A schematic diagram for adjusting parameters of a component according to an embodiment of the present disclosure is shown;

[0017] Figure 7 A schematic block diagram showing an example apparatus according to some embodiments of the present disclosure is shown;

[0018] Figure 8 A block diagram of an example device that may be used to implement embodiments of the present disclosure is shown.

[0019] Throughout the drawings, the same or similar reference numbers denote the same or similar elements. DETAILED DESCRIPTION

[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information. It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user in an appropriate manner in accordance with relevant laws and regulations and the user's authorization should be obtained.

[0021] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from a user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0022] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0024] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects, unless explicitly stated. Other explicit and implicit definitions may also be included below.

[0025] When running components in the application development framework, each component can pass parameters according to the agreed parameters, so as to gradually realize the processing of tasks at each component. In some cases, it may be necessary to intervene in the parameters of the component. For example, if the user wants to modify the model name, the values ​​of the parameters for the model name of some components in the framework need to be adjusted during implementation. In the related art, the way to adjust the parameters is to enter the name of the variable and the modified value. For example, component 1 has a variable named a, which represents the name of a certain model, and the user can enter the value of a and a. If multiple components of the framework belong to different component types and have repeated variables, for example, component 1-2 belongs to component type A, component 3 belongs to component type B, and component 3 also includes variable a, but it represents the coefficient information of component 3. If only the name of the variable and the modified value are entered, the variable a of component 3 will also be modified, resulting in confusion in parameter adjustment.

[0026] In this regard, the present disclosure proposes a method for adjusting the parameters of a component. The method can match the target component type in the dimension of the target component type through the target component type, screen out at least one target component belonging to the target component type, and accurately adjust the parameters of the target component without causing the parameters of components of non-target component types to be changed, thereby avoiding confusion in parameter adjustment.

[0027] The embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. Figure 1 A schematic diagram of an example environment 100 in which an embodiment of the present disclosure can be implemented is shown. The example environment 100 includes a computing device 110 and a computing device 120, as well as components 142, 144, 146, 148, 150, 152, and a matcher 160. The computing device 110 can process data and deploy an application development framework, such as a development framework for artificial intelligence applications, for providing orchestration services and running orchestration components for user devices (such as computing device 120) accessing the computing device 110. In some embodiments, the computing device 120 communicates with the computing device 110 through a network 130. The network 130 may include a wired network, a wireless network, or a combination thereof, for providing communication between the computing device 120 and the computing device 110. In some embodiments, the computing device 120 may be connected to the computing device 110 through a data line, and the present disclosure does not limit the connection method between the computing device 110 and the computing device 120.

[0028] The computing device 120 can provide multiple components to the computing device 110. Developers can complete the definition of various components on the computing device 120, and this definition can be implemented through a variety of programming languages. These programming languages ​​cover different levels from low-level to high-level and are suitable for different programming paradigms, including but not limited to Golang language, C language and other strongly typed languages. For example, for application scenarios that require tightly coupled hardware resources, you can choose to use C language for development. As a process-oriented programming language, C language not only provides the ability to operate the underlying hardware, but also has good portability and execution efficiency. For another example, when the design of an application tends to utilize modularity, inheritance and polymorphism, an object-oriented programming language can be used.

[0029] In this embodiment, the computing device 110 may obtain a target component type and a target adjustment for a target parameter. The target component type and the target adjustment for a target parameter may come from multiple aspects, such as user input, a system configuration file, or automatically detected environmental characteristics. For example, if a user wishes to modify a variable a representing a model name to "X model", and the variable is defined in component type A, then the user may input "modify the value of variable a of component type model A to 'X model'". In this embodiment, the user input is provided in the form of pseudocode, and in actual applications, the pseudocode may be modified into appropriate code instructions according to the language features applied in the framework.

[0030] The computing device 110 may determine at least one target component of the target component type from the plurality of components 142-152. Figure 1 As shown, the matcher 160 in the computing device 110 can determine the component types in the multiple components 142-152 to filter out the matching components as the target components, including components 142, 150, and 152. As an example, the matcher 160 can read the parameter information in the multiple components 142-152 to determine the types of these parameters, and the types of these parameters can reflect the component types of the corresponding components. The matcher 160 can further filter out at least one target component, that is, components 142, 150, and 152, according to the type of the parameters. Because the definition positions of the parameters are different, for example, some parameters are defined in the component type, and some parameters are defined in the component implementation (such as a specific component instance), different parameters also have different types. If component 142 has parameter a, and parameter a is defined in component type A, it means that the component type of component 142 is component type A, so that the computing device 110 can infer the component type of each component one by one according to the type of the parameter, and determine the component belonging to the target component type as the target component.

[0031] The computing device 110 can adjust the target parameter in at least one target component according to the target adjustment for the target parameter. The computing device 110 can obtain parameter sets 162, 164, and 166 for the target components 142, 150, and 152, respectively. For example, the target component 142 inherits the component type A and is necessarily associated with the parameter set defined in the component type A. Therefore, the parameter set 162 of the target component type can be obtained, and the parameters in the parameter set 162 can be detected to see whether they include the target parameter. If included, it can be modified. If not included, it means that the target parameter is defined in the component, and the parameters defined in the target component 142 can be detected to find the target parameter and modify it. Similarly, components 150 and 152 can also complete the adjustment of parameters in a similar manner. After determining the target component, components with the same parameter name but belonging to different component types can be excluded, so only the value of the parameter of the target component can be changed. According to the method disclosed in the present invention, it is possible to match the target component type in the dimension of the target component type, and screen out at least one target component belonging to the target component type to accurately adjust the parameters of the target component without causing the parameters of components of non-target component types to be changed, thereby avoiding confusion in parameter adjustment.

[0032] like Figure 1 As shown, in environment 100, network 130 can be used to transmit data between computing device 110 and computing device 120. Network 130 has a theoretical bandwidth, which refers to the maximum transmission speed supported by network 130, which indicates the maximum amount of data that can be transmitted by network 130 under ideal conditions, usually measured in bits per second (bps). For example, if the theoretical bandwidth of network 130 is 100Mbps, it means that it can transmit one hundred megabits of data per second under ideal conditions. However, in reality, due to other factors that may exist in the network (e.g., signal interference, bandwidth sharing, transmission delay, etc.), the actual transmission speed of 100Mbps may not be achieved.

[0033] As understood by those skilled in the art, an instance of the computing device 110 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides 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, CDN, and big data and artificial intelligence platforms. The server may be directly or indirectly connected via wired or wireless communications, which is not limited in this application.

[0034] The computing device 120 may be any type of mobile computing device, including a mobile computer (e.g., a personal digital assistant (PDA), a laptop computer, a notebook computer, a tablet computer, a netbook, etc.), a mobile phone (e.g., a cellular phone, a smart phone, etc.), a wearable computing device (e.g., a smart watch, a head-mounted device, including smart glasses, etc.), or other types of mobile devices. In some embodiments, the computing device 120 may also be a stationary computing device, such as a desktop computer, a game console, a smart TV, etc.

[0035] It should be understood that the architecture and functions in the example environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Embodiments of the present disclosure may also be applied to other environments with different structures and / or functions.

[0036] The process according to the embodiment of the present disclosure will be described in detail below in conjunction with other drawings. For ease of understanding, the specific data mentioned in the following description are exemplary and are not intended to limit the scope of protection of the present disclosure. It is understood that the embodiments described below may also include additional actions not shown and / or the actions shown may be omitted, and the scope of the present disclosure is not limited in this respect.

[0037] Figure 2 A flow chart of a method 200 for adjusting parameters of a component according to certain embodiments of the present disclosure is shown. In this embodiment, the method may be performed by a computing device 110. In box 202, a target component type and a target adjustment for a target parameter are obtained. A component type may also be referred to as a component abstraction, including code content such as defined functions and variables that a component implementing the component type or component abstraction should have. Component types are generally not implemented in programming languages, but may be inherited by specific component instances, so that the component type of the component is the inherited component type.

[0038] For example, structure 1 can be defined in component type A, and structure 1 includes variables a and b. Component type A can define function a1 for modifying variable a and function b1 for modifying variable b. Component 1 and component 2 can be instances of component type A, inheriting the structure, function and other code content of component type A. And component 1 can be associated with structure 1 alone, rather than sharing the structure with other component instances (such as component 2) that inherit component type A. The target parameter is the parameter that you want to adjust, such as variable a. The target adjustment can be the function name (in some programming languages, it can be called a "function signature") that adjusts variable a. The function name is defined in component type A, and component type A can define the specific adjustment action of the function name, such as an assignment operation.

[0039] In box 204, at least one target component belonging to the target component type is determined from the multiple components. In this operation, the component types of the multiple components are matched to determine the component that is consistent with the target component type. For example, if the target component type is component type A, it can be determined that component 1 and component 2 belong to the target component. As described above, when determining at least one target component belonging to the target component type, the component type of the component can be determined, for example, based on the type of the parameter of each component. If the component type of component 3 is component type B, which does not include component type A, it can be determined that the parameters of component 3 do not need to be adjusted. This can avoid confusion in parameter adjustment.

[0040] In box 206, according to the target adjustment for the target parameter, the target parameter in at least one target component is adjusted. After determining the target component, each target component can be traversed according to the specific adjustment content (i.e., the adjustment function name and value) to achieve the corresponding adjustment of the parameters of each target component. According to the method disclosed in the present invention, it is possible to match the target component type in the dimension of the target component type through the target component type, and filter out at least one target component belonging to the target component type to accurately adjust the parameters of the target component without causing the parameters of the components of the non-target component type to be changed, thereby avoiding confusion in parameter adjustment. When adjusting the parameters, it is not required that all parameters of the component can be adjusted.

[0041] As described above, the matching of the target component can be achieved according to the type of the parameter. In an embodiment, the type information of multiple first parameters of multiple components is obtained. The first parameter can be a function defined by the component type. For example, in the Golang language environment, the first parameter can be an optional parameter (i.e., a parameter of the Option type) provided in the definition of the target type. Each component can be associated with a structure of the Option type defined by the component type inherited by the component, and the structure can include multiple parameters.

[0042] In an embodiment, the target component type is matched with the type information of multiple first parameters. The first parameter refers to a parameter that can reflect the component type. In many cases, some programming languages ​​(such as Golang language) are provided with optional parameters, such as Option type parameters. The type of the optional parameter is consistent with the type of the grammatical structure that defines the optional parameter. For example, in the definition of component type A, component type A can provide a definition of a structure of Option type, in which multiple parameters are defined, and component 1 is a specific instance of component type A, then component 1 can be associated with (for example, having) an Option structure of component type A, and the type of the parameter in the Option structure of component type A to which component 1 is associated is component type A. In this way, it can be determined that the component type of component 1 is component type A. As an example, a Boolean operation can be performed. If the Boolean operation result of the type information of a first parameter and the target component type is 1, it indicates that the two are the same, and the type information of the first parameter is the target component type, otherwise the two are different. In an embodiment, if the type information of at least one first parameter in the type information of multiple first parameters matches the target component type, the component including the type information of at least one first parameter is determined as at least one target component. The type information of the first parameter is the target component type, indicating that the component associated with the first parameter inherits the target component type, so that the component can use the first parameter.

[0043] In this embodiment, by obtaining the type information of the first parameters of multiple components, the component types of the components can be inferred, and further matching of multiple components with target component types can be achieved, which provides a simple and quick solution for determining or screening target components.

[0044] When adjusting parameters based on this, the first parameter can be directly called to complete the adjustment task. Figure 3 A schematic diagram of adjusting target parameters according to an embodiment of the present disclosure is shown. At 302, a first parameter set of a target component is obtained according to the target component type. The first parameter set may be a structure defined by the target component type, such as a structure of the Option type, in which multiple parameters are defined, such as parameter a and parameter b. Referring to the above example, assuming that component type A is the target component type, since component 1 is a component instance of component type A, component 1 can obtain the associated (or possessed) Option structure of component type A, and obtain the parameters therein to obtain the first parameter set. When obtaining the first parameter set, as an example, the computing device 110 may obtain the address of the first parameter set corresponding to the target component, and obtain the first parameter set according to the address.

[0045] At 304, a target adjustment is obtained according to the target component type. The target adjustment can be a function signature input by the user, which is used to adjust the target parameters. Typically, when defining the first parameter, the target component type also defines a function signature and an adjustment action for modifying the first parameter, and the adjustment action can be a closure consisting of several lines of code. When obtaining the target adjustment, the function signature can be used as a matching object, and the adjustment action (i.e., a closure) corresponding to the function signature is obtained as the target adjustment. At 306, the target component uses the target adjustment to adjust the target parameters in the first parameter set. Based on the content obtained at 302 and 304, the target parameters are modified according to the specific modification method in the target adjustment.

[0046] In this embodiment, not only is the parameter adjustment process simplified, but it is also ensured that the adjustment operation only affects the specified components and parameters, avoiding adjustment confusion and improving the stability and maintainability of the orchestration products in the framework. In addition, through clear function signatures and structure definitions, the transparency and controllability of the parameter adjustment process are enhanced. In addition, the target parameters of all target components belonging to the target component type can be adjusted in batches, which improves the adjustment efficiency.

[0047] However, in some cases, it is necessary not only to adjust the parameters of the component type dimension, but also to further adjust the parameters of the specific components. Figure 4 FIG. 2 shows a schematic diagram for adjusting parameters of a component according to an embodiment of the present disclosure. Figure 4 As shown, in the framework, component 402 involves multiple transmissions of parameters, for example, it needs to receive parameters from upstream components to perform related calculations. The parameters are pre-determined parameters and are usually not adjustable. The component can also transmit the calculation results to downstream components in the form of parameter transmission after task processing. In addition, the component can also involve adjustable parameters, such as parameter a, parameter b and parameter c. The parameters a and b are parameters defined by the component type, and parameter c is a parameter defined by the component implementation. The parameters defined by the component implementation refer to the parameters defined separately for the component during the implementation process, which can also be called the parameters defined by the component instance.

[0048] The framework may be provided with a matcher 404, which may receive the target component type to be adjusted and the target adjustment for the target parameter, and determine the component 402 as the target component according to the target component type, and then distribute the target adjustment to the component 402, so as to adjust the target parameter using the target adjustment. The target parameter may be any one or more of parameter a, parameter b, and parameter c. In this embodiment, the matcher 404 may not only accurately distribute in the dimension of component type, but also accurately distribute in the dimension of component implementation, further improving the accuracy of modifying the parameters and avoiding confusion in the adjustment.

[0049] Figure 5 A schematic diagram for adjusting the parameters of a component according to an embodiment of the present disclosure is shown. In this embodiment, distribution or matching can be performed twice. The application development framework includes components 502, 504, 506, 508, 510, and 512. In this embodiment, the computing device 110 can obtain the target component type and the target adjustment for the target parameter, and the target adjustment includes the target realization information for the target parameter. The target realization information indicates in which component instance the target parameter is. Assuming that the target component type is component type A, the computing device 110 can determine from multiple components 502-512 through the matcher 520 that components 502, 510, and 512 belong to component type A and can be used as target components. Because further matching is required, for the sake of clarity, components 502, 510, and 512 will be referred to as first components in the following.

[0050] The computing device 110 may obtain type information of multiple second parameters of multiple first components. The second parameters may be parameters defined by the components 502, 510, and 512, respectively. That is, the first parameters are parameters of the component type dimension, and the second parameters are parameters of the component implementation dimension (or component instance dimension).

[0051] The computing device 110 can match the target implementation information with the types of multiple second parameters in the matcher 530. If the type information of at least one second parameter among the type information of the multiple second parameters matches the target implementation information, the first component including the type information of at least one second parameter is determined as at least one target component. The matching operation can be a Boolean operation, and the type information of the second parameter is Boolean multiplied with the target implementation information. If the result is 1, it means that the two are the same. If the result is 0, it means that the two are different. After matching by the matcher 530, it can be seen that only the first component 512 is matched successfully, indicating that the component 512 has the target parameters. The target parameters in the component 512 can be adjusted according to the target adjustment. In this embodiment, the user can locate the target parameter to a specific component, that is, directly modify the parameters of the component dimension, which can more accurately achieve precise control of the adjustment parameters.

[0052] When adjusting the target parameter based on this, in an embodiment, the second parameter set of the first component 512 is obtained. In an embodiment, the target adjustment of the first component 512 is obtained. In an embodiment, the target adjustment is used to adjust the target parameter in the second parameter set. Since the target parameter is the target parameter of the component implementation dimension, the corresponding component should provide a definition for the second parameter and a definition for the target adjustment. Therefore, the target parameter and the adjustment operation can be directly obtained from the first component 512, thereby achieving accurate adjustment of the target parameter.

[0053] Typically, the target component (i.e., the first component 512 in the above embodiment) is defined with multiple functions, each of which can be used to adjust different second parameters. In an embodiment, the computing device 110 can match the target operation name with multiple adjustment operations. For example, the multiple second parameters correspond to multiple adjustment operations one by one. In an embodiment, if the name of an adjustment operation in multiple adjustment operations is the same as the target operation name, the adjustment operation is determined as the target adjustment. At this time, the adjustment of the target parameter can be completed directly through the adjustment operation.

[0054] In some cases, adjustments to multiple parameters may be processed simultaneously. Figure 6 A schematic diagram for adjusting the parameters of a component according to an embodiment of the present disclosure is shown. In this embodiment, the framework may include multiple components 610, and the multiple components 610 may involve different component types, for example, components 602 and 604 are component types of component type A, and the component types of other components are component type B. The computing device 110 may receive a target component type, a target adjustment for a target parameter, and multiple second adjustments 608 from the computing device 120. In an embodiment, the multiple second adjustments are obtained in the form of user input, and the user input indicates the target component type and multiple second adjustments for multiple parameters. For example, the user wishes to adjust specific parameters of the component type dimension (e.g., parameter ModelName) and specific parameters of two component dimensions (e.g., parameter Temperature and parameter Stop). The computing device 110 may store the target adjustment and multiple second adjustments in an array (i.e., a first data structure) 612. In this way, the target adjustment and multiple second adjustments may be traversed by traversing the array 612.

[0055] When traversing the array 612, the matcher 606 obtains an adjustment operation from the first data structure as the traversed adjustment operation, and the adjustment operation is, for example, the adjustment variable ModelName. The target component type can be inferred (for example, through the name or calling format of the adjustment operation) as component type A. The component type associated with the traversed adjustment operation is matched with the type information of the multiple first parameters. The matcher 606 can match the type information of the parameter ModelName, and then it can be determined that the component type indicated by the type information of the parameter ModelName is the target component type. Therefore, the component types of component 602 and component 604 are both target component types. When showing the distribution of adjustment operations, component 602 and component 604 in multiple components 610 are displayed. Figure 6The matcher 606 may transmit the read adjustment operation and the name of the target parameter to the component 602 and the component 604, and the component 602 and the component 604 may adjust the parameter ModelName according to the adjustment operation, so that the name of the model is modified to "X model" at each component.

[0056] Next, the matcher obtains another adjustment operation from array 612 as the traversed adjustment operation. The adjustment operation is, for example, adjusting the variable Temperature. The component type associated with the traversed adjustment operation is matched with the type information of the multiple first parameters, and it can also be determined that component 602 and component 604 are target components. Because further matching is required, component 602 and component 604 are determined as first components. Matcher 606 matches the type information of the second parameter Temperature of the first component 602 and the type of the second parameter Stop of the first component 604 with the component implementation information associated with the traversed adjustment operation, and it can be determined that the first component 602 is the target component. Therefore, matcher 606 can distribute the adjustment operation to the first component 602 to adjust the value of the variable Temperature to 0.7. The next adjustment operation in array 612 should be an adjustment operation for the variable Stop, and its matching and distribution process is consistent with the process for the variable Temperature. Matcher 606 can distribute the next adjustment operation to component 604 to adjust the value of the variable Stop to "OK". After all adjustments are distributed, the parameter adjustment task can be completed at 614. In this embodiment, the array 612 can be used to process multiple adjustment operations at the same time, and the target parameters of the component type dimension and the target parameters of the component implementation dimension can be adjusted at the same time, which can improve the efficiency and accuracy of adjusting the parameters.

[0057] In an embodiment, when obtaining the target component type, target adjustment, and second adjustment 608, the target identifier of the target component may also be obtained. Each component in the plurality of components 610 may have an identifier. If the target identifier of the target component involved in the target parameter can be obtained in advance, the target identifier may be compared with the identifier of the component participating in the matching using the matcher 606. If the target identifier is the same as the identifier of the matched component, and the component belongs to a component of the target category, and the second parameter of the component also successfully matches the target realization information, the matcher 606 may distribute the target adjustment to the component for adjusting the target parameter.

[0058] Figure 7 1 shows a schematic block diagram of an example device 700 according to some embodiments of the present disclosure. The device 700 may be implemented in software, hardware, or a combination of both. Figure 7As shown, the apparatus 700 includes an acquisition module 710 , a determination module 720 and an adjustment module 730 .

[0059] In some embodiments, the acquisition module 710 may be configured to acquire a target component type and a target adjustment for a target parameter. The determination module 720 may be configured to determine at least one target component belonging to the target component type from a plurality of components. The adjustment module 730 may be configured to adjust a target parameter in at least one target component according to the target adjustment for the target parameter.

[0060] In some embodiments, the determination module 720 includes a second acquisition module configured to acquire type information of multiple first parameters of multiple components. The determination module 720 also includes a first matching module configured to match the target component type with the type information of the multiple first parameters. The determination module 720 also includes a second determination module configured to determine the component including the type information of the at least one first parameter as at least one target component in response to the type information of at least one first parameter in the type information of the multiple first parameters matching the target component type.

[0061] In some embodiments, the adjustment module 730 includes a first traversal module configured to perform the following operations for each target component of at least one target component: obtaining a first parameter set of the target component based on the target component type; obtaining a target adjustment based on the target component type; and adjusting the target parameters in the first parameter set using the target adjustment by the target component.

[0062] In some embodiments, the target component corresponds to the first parameter set one by one, and the first traversal module includes an address acquisition module configured to acquire the address of the first parameter set corresponding to the target component. The first traversal module also includes a third acquisition module configured to acquire the first parameter set according to the address.

[0063] In some embodiments, the target adjustment includes target realization information for the target parameter, at least one target component includes multiple first components, and the device 700 also includes a fourth acquisition module configured to obtain type information of multiple second parameters of the multiple first components. The device 700 also includes a second matching module configured to match the target realization information with the types of the multiple second parameters. The device 700 also includes a third determination module configured to determine the first component including the type information of the at least one second parameter as at least one target component in response to the type information of at least one second parameter in the type information of the multiple second parameters matching the target realization information.

[0064] In some embodiments, the adjustment module 730 includes a fourth acquisition module configured to acquire a second parameter set of the first component. The adjustment module 730 also includes a fifth acquisition module configured to acquire a target adjustment of the first component. The adjustment module 730 also includes a second adjustment module configured to use the target adjustment to adjust the target parameters in the second parameter set.

[0065] In some embodiments, the first component is provided with a plurality of adjustment operations, the plurality of adjustment operations include a target adjustment, the adjustment operation includes a target operation name, and the fifth acquisition module includes a fourth matching module configured to match the target operation name with the plurality of adjustment operations. The fifth acquisition module also includes a fourth determination module configured to determine the adjustment operation as a target adjustment in response to a name of an adjustment operation in the plurality of adjustment operations being the same as the name of the target operation.

[0066] In some embodiments, the second parameter set includes a plurality of second parameters, and the plurality of second parameters correspond one-to-one to the plurality of adjustment operations.

[0067] In some embodiments, the apparatus 700 further comprises a sixth acquisition module configured to acquire user input, wherein the user input indicates a target component type and a plurality of second adjustments for a plurality of parameters. The apparatus 700 further comprises a storage module configured to store the target adjustment and the plurality of second adjustments to the first data structure.

[0068] In some embodiments, the first matching module includes a second traversal module configured to traverse the first data structure according to the following operations: obtaining an adjustment operation from the first data structure as the traversed adjustment operation; and matching the component type associated with the traversed adjustment operation with type information of multiple first parameters.

[0069] According to the device of the embodiment of the present disclosure, it is possible to match the target component type in the dimension of the target component type, and screen out at least one target component belonging to the target component type to accurately adjust the parameters of the target component without causing the parameters of components of non-target component types to be changed, thereby avoiding confusion in parameter adjustment.

[0070] The division of modules or units in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in the disclosed embodiments may be integrated into one unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0071] Figure 8 8 is a block diagram of an example device 800 that can be used to implement embodiments of the present disclosure. It should be understood that Figure 8 The device 800 shown is merely an example and should not be construed as limiting the functionality and scope of the implementations described herein. Figure 1 The computing device 120 described above can be used to perform the above-described Figures 1 to 6 process.

[0072] like Figure 8 As shown, the device 800 is in the form of a general-purpose computing device. The components of the computing device 800 may include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860. The processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to increase the parallel processing capabilities of the computing device 800.

[0073] The computing device 800 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 830 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 800.

[0074] The computing device 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.

[0075] The communication unit 840 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the computing device 800 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the computing device 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0076] The input device 850 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 860 may be one or more output devices, such as a display, a speaker, a printer, etc. The computing device 800 may also communicate with one or more external devices (not shown) through the communication unit 840 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the computing device 800, or communicate with any device that allows the computing device 800 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0077] According to an example implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided, the computer program product is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.

[0078] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0079] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0080] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0081] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0082] The above descriptions of various implementations of the present disclosure are illustrative, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A method for adjusting a parameter of a component, comprising: Get the target component type and target adjustment for the target parameter; Determine at least one target component belonging to the target component type from a plurality of components; as well as The target parameter in the at least one target component is adjusted according to the target adjustment for the target parameter.

2. The method according to claim 1, wherein determining at least one target component belonging to the target component type from a plurality of components comprises: Obtain type information of multiple first parameters of the multiple components; Matching the target component type with the type information of the plurality of first parameters; as well as In response to type information of at least one first parameter among the plurality of first parameter type information matching the target component type, a component including the at least one first parameter type information is determined as the at least one target component.

3. The method of claim 2, wherein adjusting the target parameter in the at least one target component according to the target adjustment for the target parameter comprises: For each target component of the at least one target component, perform the following operations: Acquire a first parameter set of the target component according to the target component type; Obtaining the target adjustment according to the target component type; and The target adjustment is used by the target component to adjust the target parameters in the first parameter set.

4. The method according to claim 3, wherein the target component corresponds to the first parameter set one by one, and obtaining the first parameter set of the target component according to the target component type comprises: Obtaining the address of the first parameter set corresponding to the target component; as well as The first parameter set is obtained according to the address.

5. The method of claim 2, wherein the target adjustment comprises target achievement information for the target parameter, the at least one target component comprises a plurality of first components, and the method further comprises: Obtain type information of multiple second parameters of multiple first components; matching the target achievement information with the types of the plurality of second parameters; as well as In response to type information of at least one second parameter among the plurality of second parameter type information matching the target implementation information, a first component including the type information of the at least one second parameter is determined as the at least one target component.

6. The method of claim 5, wherein adjusting the target parameter in the at least one target component according to the target adjustment for the target parameter comprises: Obtaining a second parameter set of the first component; obtaining the target adjustment of the first component; as well as The target parameters in the second set of parameters are adjusted using the target adjustment.

7. The method according to claim 6, wherein the first component is provided with a plurality of adjustment operations, the plurality of adjustment operations include the target adjustment, the adjustment operation includes a target operation name, and obtaining the target adjustment of the first component comprises: Matching the target operation name with the multiple adjustment operations; as well as In response to a name of an adjustment operation among the plurality of adjustment operations being the same as the target operation name, the adjustment operation is determined as the target adjustment. 8 . The method according to claim 7 , wherein the second parameter set comprises a plurality of second parameters, and the plurality of second parameters correspond one-to-one to the plurality of adjustment operations.

9. The method according to claim 2, further comprising: obtaining user input, wherein the user input indicates the target component type and a plurality of second adjustments for a plurality of parameters; as well as The target adjustment and the plurality of second adjustments are stored in a first data structure.

10. The method according to claim 9, wherein matching the target component type with the type information of the plurality of first parameters comprises: The first data structure is traversed according to the following operations: Obtain an adjustment operation from the first data structure as the traversed adjustment operation; as well as The component type associated with the traversed adjustment operation is matched with the type information of the plurality of first parameters.

11. A device for adjusting a parameter of a component, comprising: an acquisition module configured to acquire a target component type and a target adjustment for a target parameter; A determination module, configured to determine at least one target component belonging to the target component type from a plurality of components; as well as An adjustment module is configured to adjust the target parameter in the at least one target component according to the target adjustment for the target parameter.

12. An electronic device comprising: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 10.

13. A computer program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 10.