Visual Programming for Deep Learning

Visual programming simplifies deep learning development by allowing users to create and modify neural networks through drag-and-drop operations, generating code for different frameworks, addressing the complexity of traditional coding-based methods.

JP7571056B2Active Publication Date: 2024-10-22MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021568242
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-28
Filing Date
2020-05-06
Publication Date
2024-10-22
Estimated Expiration
2040-05-06

AI Technical Summary

Technical Problem

Current deep learning programming requires extensive coding, overwhelming beginners and hindering their ability to quickly understand and grasp the concepts.

Method used

A visual programming method that presents a graphical representation of artificial neural networks, allowing drag-and-drop operations to modify the network structure and automatically generates code for different deep learning frameworks, simplifying the development process.

Benefits of technology

Simplifies deep learning development by enabling users to create and modify neural networks visually, reducing the need for manual coding and facilitating easy switching between frameworks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571056000001
    Figure 0007571056000001
  • Figure 0007571056000002
    Figure 0007571056000002
  • Figure 0007571056000003
    Figure 0007571056000003
Patent Text Reader

Abstract

Implementations of the present disclosure relate to visual programming for deep learning. A computer-implemented method includes presenting a visual representation of an artificial neural network, the visual representation including graphical elements representing layers of the artificial neural network, modifying an intermediate representation of the artificial neural network in response to receiving drag-and-drop operations on the graphical elements, the intermediate representation being independent of a deep learning framework and configured to modify connections between the graphical elements, and modifying code of the artificial neural network for a target deep learning framework based on the intermediate representation of the artificial neural network.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] background

[0001] With the widespread application of deep learning, more and more developers are learning and using deep learning programming.However, in the current procedure of deep learning programming, developers need to write a lot of code to preprocess data and build deep learning models.Novices are usually overwhelmed by the huge amount of underlying code, and therefore can hardly quickly understand and grasp deep learning programming. Summary of the Invention

[0002] overview

[0002] A computer-implemented method includes presenting a visual representation of an artificial neural network, the visual representation including graphical elements representing layers of the artificial neural network; modifying an intermediate representation of the artificial neural network in response to receiving a drag-and-drop operation on the graphical elements, the intermediate representation being independent of a deep learning framework, and the drag-and-drop operation being configured to modify connections between the graphical elements; and modifying code of the artificial neural network for a target deep learning framework based on the intermediate representation of the artificial neural network.

[0003]

[0003] This Summary is provided to introduce some concepts of the invention in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. [Brief description of the drawings]

[0004] BRIEF DESCRIPTION OF THE DRAWINGS [Figure 1]

[0004] FIG. 1 illustrates a block diagram of a computing device capable of implementing implementations of the present disclosure. [Diagram 2]

[0005] 1 shows a schematic diagram of a visual programming architecture according to an implementation of the present disclosure. [Diagram 3]

[0006] 1 shows a schematic diagram of a visual representation of an artificial neural network according to an implementation of the present disclosure. [Figure 4]

[0007] 1 shows a flowchart of a method for visual programming according to an implementation of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0005]

[0008] Throughout the drawings, the same or similar reference numbers refer to the same or similar elements.

[0006] Detailed Description

[0009] The present disclosure will now be described with respect to some implementation examples. It should be understood that these implementations do not suggest any limitation to the scope of the subject matter, but are merely discussed to enable those skilled in the art to better understand and thereby implement the present disclosure.

[0007]

[0010] As used herein, the term "comprises" and its variants should be interpreted as an open term meaning "including, but not limited to." The term "based on" should be interpreted as "based at least in part on." The terms "one implementation" and "implementation" should be interpreted as "at least one implementation." The term "another implementation" should be interpreted as "at least one other implementation." Terms such as "first," "second," etc. can refer to different or the same object. Other definitions, both explicit and implied, may be included below.

[0008]

[0011] The basic principles and some examples of the present disclosure are described below with reference to the drawings. Figure 1 shows a block diagram of a computing device 100 that can perform implementations of the present disclosure. It should be understood that the computing device 100 shown in Figure 1 is merely an example and is not intended to constitute any limitation on the functionality and scope of the implementations described by the present disclosure. According to Figure 1, the computing device 100 can be implemented by a general-purpose computing device or a special-purpose computing device. The components of the computing device 100 may include, but are not limited to, one or more processors or processing units 110, memory 120, storage device 130, one or more communication units 140, one or more input devices 150, and one or more output devices 160.

[0009]

[0012] In some implementations, the computing device 100 can be implemented as various user terminals or service terminals having computing capabilities. The service terminals can be servers, large-scale computing devices, etc. provided by various service providers. The user terminals can be any kind of mobile, fixed or portable terminals or any other combination of those, including, for example, mobile phones, base stations, units, devices, multimedia computers, multimedia tablets, Internet nodes, transmitters, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / videos, positioning devices, television receivers, radio broadcast receivers, electronic book devices, game consoles, or any other combination of those consisting of accessories and peripherals of those devices. It can also be expected that the computing device 100 can support any kind of user-specific interface (such as "wearable" circuits).

[0010]

[0013] The processing unit 110 may be a physical or virtual processor and may perform various operations based on programs stored in the memory 120. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capabilities of the computing device 100. The processing unit 110 may also be known as a central processing unit (CPU), a microprocessor, a controller, and a microcontroller. In addition, the processing unit 110 may be implemented as a graphical processing unit (GPU) for performing parallel calculations, such as computationally intensive operations.

[0011]

[0014] Computing device 100 typically includes a number of computer storage media. Such media may be any available media accessible by computing device 100, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 120 may be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash, etc.), or any combination thereof. Memory 120 may include a visual programming module 122 configured to perform functions of various implementations described herein. Visual programming module 122 may be accessed and manipulated by processing unit 110 to perform corresponding functions.

[0012]

[0015] Storage device 130 may be removable or non-removable and may include any machine-readable medium usable to store information and / or data and may be accessed within computing device 100. Computing device 100 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 1, a disk drive for reading from and writing to removable and non-volatile disks and an optical disk drive for reading from and writing to removable and non-volatile optical disks may be provided. In that case, each drive may be connected to the bus via one or more data media interfaces (not shown).

[0013]

[0016] The communication unit 140 communicates with other communication devices over a communication medium. Additionally, the functionality of the components of the computing device 100 may be implemented by a single computing cluster or multiple computers, which may communicate over a communication connection. Thus, the computing device 100 may operate in a networked environment, using logical connections to one or more other servers, personal computers (PCs), or further general-purpose network nodes.

[0014]

[0017] The input device 150 may be one or more of a variety of input devices, such as a mouse, a keyboard, a trackball, a voice input device, etc. The output device 160 may be one or more output devices, such as a display, a speaker, a printer, etc. Computing device 100 may also communicate with one or more external devices (not shown) as needed through communication unit 140, such as storage devices, displays, etc., which communicate with one or more devices that allow a user to interact with computing device 100, or with any device (network card, modem, etc.) that allows computing device 100 to communicate with one or more other computing devices. Such communication may occur via an input / output (I / O) interface (not shown).

[0015]

[0018] In some implementations, apart from being integrated on individual devices, some or all of the components of the computing device 100 may be configured in a cloud computing architecture format. In a cloud computing architecture, those components may be configured remotely and may cooperate to implement the functionality described by the present disclosure. In some implementations, cloud computing provides computing, software, data access and storage services without the end user being aware of the physical location or configuration of the system or hardware providing such services. In various implementations, cloud computing provides services over a wide area network (such as the Internet) using an appropriate protocol. For example, a cloud computing provider provides applications over a wide area network that are accessible by a web browser or any other computing component. The software or components of the cloud computing architecture and corresponding data may be stored on a server at a remote location. Computing resources in a cloud computing environment may be consolidated or distributed in a remote data center. A cloud computing infrastructure may provide services by a shared data center even if the services are presented as a single access point for users. Thus, the components and functions described herein may be provided using a cloud computing architecture from a remotely located service provider. Alternatively, the components and functionality may be provided from a conventional server, or may reside directly or otherwise on the client device.

[0016]

[0019] The computing device 100 can be used to implement a visual programming scheme according to an implementation of the present disclosure. For example, the computing device 100 can display a visual representation of the artificial neural network, such as various layers and connections between layers, on a monitor. The computing device 100 can accept user input, such as a drag-and-drop operation, via the input device 150. For example, a user can drag and drop a layer onto a canvas. The visual programming module 122 can modify the presented visual representation based on the user input and further update the code associated with the artificial neural network. The code can be provided to the output device 160 as an output 180 for the user. For example, the code can be presented to the user on a display along with the visual representation.

[0017]

[0020] 2 illustrates a schematic diagram of a visual programming architecture 200 according to some implementations of the present disclosure. For example, architecture 200 may be implemented by computing device 100, particularly visual programming module 122, shown in FIG. However, it should be understood that architecture 200 may be implemented on any other suitable device.

[0018]

[0021] 2, the visual model editor 204 can load a visual model 202 that can be edited and saved by a developer using the visual model editor 204 or shared by other developers. The visual model 202 can be saved in a description file format or other suitable format. Alternatively, a developer can use the visual model editor 204 to edit a visual model from scratch.

[0019]

[0022] For example, the visual model editor 204 may include a canvas of the deep learning visual model that can be edited by a developer through operations such as drag and drop. Drag and drop is a common operation in graphical user interfaces, allowing a user to conveniently edit connections between graphical elements through drag and drop operations. For example, a user may drag and drop one graphical element to or from the input of another graphical element. FIG. 3 shows a schematic diagram of a visual representation 300 of an artificial neural network according to some implementations of the present disclosure. The visual representation 300 may be displayed on a canvas of the visual model editor 204 and includes graphical elements that represent individual layers of the artificial neural network, such as graphical user interface elements that can be interacted with by a developer. For example, a developer may click on the graphical interface elements to modify parameters of each layer, such as the shape (also known as data dimension), kernel size, and activation function. Here, parameters refer to one or more modifiable attributes of an individual layer.

[0020]

[0023] 3, graphical element 302 represents an input layer, graphical element 304 represents a two-dimensional convolutional layer, graphical element 306 represents a two-dimensional max pooling layer, graphical element 308 represents a flattening layer, and graphical element 310 represents a fully connected layer. The shape of the individual layers is also shown in each graphical element. For example, the raw data shape of the input layer is [28,28,1], i.e., a 28x28x1 tensor.

[0021]

[0024] It should be understood that the term "layer" as used herein does not only include the processing layers of an artificial neural network (such as convolutional layers, fully connected layers, and pooling layers), but also includes structured input / output, such as the input layer shown by graphical element 302 in FIG. 3. In addition, the processing layers of an artificial neural network typically include multiple sets of operators. For example, a fully connected layer may include a combination of matrix multiplication and addition operations. Thus, the term "layer" as used herein may be composed of more fundamental computational elements than typical processing layers, i.e., operators such as matrix multiplication.

[0022]

[0025] Visual representation 300 not only includes a number of graphical elements, but also includes connections between the graphical elements, thereby collectively forming a visual representation of the corresponding model.

[0023]

[0026] The graphical diagram allows the developer to modify the parameters of the individual layers and the connections between them very easily. For example, when the developer edits the visual representation 300, the visual model editor 204 can determine the shape of each layer. Based on the parameters of those shapes, it verifies whether the shapes of each layer in the artificial neural network match each other. For example, if two layers do not match in terms of shape, an error indicator can be displayed in the visual representation 300, and the visual programming tool can verify the artificial neural network immediately after changing the shape of any layer and / or immediately after changing the connections between any graphical elements to find problems with the model as early as possible.

[0024]

[0027] In some implementations, to connect a first graphical element to a second graphical element, a user can drag and drop the first graphical element onto the second graphical element. The output of the first graphical element is fed to the input of the second graphical element, which means that the output data dimensions of the first graphical element should match the input data dimensions of the second graphical element, or errors will occur in the artificial neural network. Furthermore, the visual editor 204 can automatically connect the graphical elements based on their respective shapes. For example, when a user adds a new graphical element, the new graphical element can be automatically connected to a graphical element that has a matching shape.

[0025]

[0028] In the example shown in FIG. 3, if a user modifies the data dimensions of the input layer shown by graphical element 302, the visual model editor 204 can compare the data dimensions of the input layer with the input data dimensions of the convolutional layer represented by graphical element 304 to verify whether the shapes of the two layers match each other.

[0026]

[0029] In some implementations, when a user modifies the data dimensions of the input layer represented by graphical element 302, the visual model editor 204 can correspondingly adjust the input data dimensions of the convolutional layer represented by graphical element 304 to the data dimensions of the input layer represented by graphical element 302. In addition, the visual model editor 204 can also verify whether the output data dimensions of the convolutional layer represented by graphical element 304 match the max pooling layer represented by graphical element 306.

[0027]

[0030] In some implementations, the visual model editor 204 can provide a default set of layers for the artificial neural network. The structured layers can be organized into multiple toolbox panels, such as input / output, convolutional neural network (CNN), recurrent neural network (RNN), fully connected layers, tensor operations, etc. A developer can select the desired structured layers from the toolbox panels based on the requirements for building the artificial neural network model. For example, the interface of the visual model editor 204 can also include a search option that helps search for a specific layer and allows the user to drag and drop layers that match the search onto the canvas.

[0028]

[0031] In some implementations, developers can save the artificial neural network model or the visual model for subsequent recall. The models can be saved in a descriptive file format or any other suitable format. Saved visual models can also be shared with other developers for use.

[0029]

[0032] In some implementations, the visual model editor 204 interface may also include a data interface for previewing the dataset. For example, a data import interface may be provided where the developer uploads some public data, such as a public dataset, as well as a local dataset for training. After the developer selects a particular dataset, the visual model editor 204 may load the dataset and display the dataset and / or related information. For example, the total sample size of the dataset, the sample size of the training set, and the sample size of the test set may all be displayed on the interface. For example, a uniform user interface for public and local data may be provided so that the user can quickly import the data. The user may preview the uploaded data, train a model, and make inferences from the trained model.

[0030]

[0033] As shown in Fig. 2, when a developer modifies the visual representation of the artificial neural network, the intermediate model generator 208 can instantly convert the visual representation into an intermediate representation that is independent of the deep learning framework. The intermediate representation can correspond to the visual representation 300 and indicate the parameters and names for each graphical element. For example, the intermediate representation can include a specification description such as parameters and names for a given graphical element. The description is independent of the deep learning framework. Generally, deep learning frameworks have individual specific specifications for the layers of the artificial neural network. Under various deep learning frameworks, the specifications for the specific layers, such as the specific layers and parameters and names of the artificial neural network, are also different.

[0031]

[0034] The intermediate representation may be embodied in an intermediate computation chart format, where each node may correspond to one graphical element in the visual representation. The intermediate computation chart may describe the artificial neural network as a directed graph independent of the deep learning framework. There may not be a one-to-one correspondence between nodes and layers of the deep learning framework. For example, one node may correspond to multiple layers in the deep learning framework, or multiple nodes may correspond to one layer in the deep learning framework.

[0032]

[0035] In some implementations, the edited or modified artificial neural network model can also be verified by the intermediate model generator 208, with relevant errors indicated in the individual graphical elements by the visual model editor 204. In the example of Fig. 3, if the user modifies the data dimensions of the input layer, shown by graphical element 302, the intermediate model generator 208 can obtain the input data dimensions of the convolutional layer, shown by graphical element 304, and compare the data dimensions of the input layer with the data dimensions of the convolutional layer to verify whether their shapes match each other.

[0033]

[0036] In some further implementations, if a user modifies the data dimensions of the input layer, shown in graphical element 302, the intermediate model generator 208 can adjust the input data dimensions of the convolutional layer, shown in graphical element 304, to the data dimensions of the input layer. The intermediate model generator 208 can then also verify whether the output data dimensions of the convolutional layer match the input data dimensions of the next layer.

[0034]

[0037] To support deep learning programs in various programming languages, the deep learning framework can provide interfaces for multiple programming languages. In some implementations, the intermediate representation can be independent of the programming language supported by the deep learning framework.

[0035]

[0038] The intermediate representation may then be provided to a target code generator 210. For each supported deep learning framework, the target code generator 210 may generate training and / or inference programs and code, such as TensorFlow code 212, PyTorch code 214, or CNTK code 216. For example, a developer may select a target deep learning framework, and the target code generator 210 may generate code for the target deep learning framework based on predefined rules. For example, the target code generator 210 may convert each node of the intermediate representation into predefined code that corresponds to the node under the target deep learning framework.

[0036]

[0039] In some implementations, a developer can change from this target deep learning framework to a further target deep learning framework. The target code generator 210 can then determine the code for the further target learning framework based on the intermediate representation of the artificial neural network. In this way, switching between different deep learning frameworks can be easily performed.

[0037]

[0040] In some implementations, the visual model and the corresponding code may be displayed side-by-side on an interface. For example, the interface may display a canvas and a code portion simultaneously, and the code may further include code stubs or editable regions that allow users to customize their own training metrics for the artificial neural network, replacing common metrics such as loss and accuracy.

[0038]

[0041] 2, a job submitter 220 can accept code 212, 214, or 216 and input data 218 and submit the generated program to a local host 222, cloud 224, or cloud 226 for training or inference. Clouds 224 and 226 can deploy deep learning cloud platforms (also known as machine learning cloud platforms) for executing the code or program. Additionally, the program may be submitted to a remote workstation for execution.

[0039]

[0042] During training, metric charts can also be rendered in real time on the interface to plot the changes in metric values ​​during training, i.e., training, of the artificial neural network. In this way, developers can easily observe the training process and debug the artificial neural network and / or its training procedure. By seeing the execution progress and operation indicators or metrics in real time, users can conveniently decide whether to continue or terminate the operation early.

[0040]

[0043] For example, the job submitter 220 can provide one-click job submission and can also be integrated with an AI integrated development environment, so that training code can be run locally or on the cloud.

[0041]

[0044] The visual programming tool provided by the implementation of the present disclosure can integrate data processing, deep learning model design, and job submission / management into a complete pipeline. The visual programming tool provides model building, training, and inference functions through a simple user interface, allowing users to design models by dragging and dropping deep learning layers in a simple and visual way. Therefore, the development procedure of deep learning can be greatly simplified.

[0042]

[0045] The tool can automatically generate training code to allow a user to train a model according to the visual model. Additionally, the tool can automatically synchronize the visual model representation with the generated code. If a user modifies the visual model representation or the code, the code and / or the visual model representation are automatically updated.

[0043]

[0046] 4 illustrates a flowchart of a method 400 of visual programming for deep learning according to some implementations of the present disclosure. The method 400 can be performed in the visual programming module 122 shown in FIG. 1 or in the form of the architecture 200 shown in FIG.

[0044]

[0047] At 402, a visual representation of an artificial neural network is displayed, such as visual representation 300 of Figure 3. Visual representation 300 includes graphical elements, such as graphical elements 302-310, that represent layers of the artificial neural network.

[0045]

[0048] At 404, when a user (e.g., a developer) edits the visual representation 300, e.g., by dragging and dropping graphical elements, the intermediate representation of the artificial neural network can be modified to indicate the connections between the graphical elements that are modified by the drag-and-drop operation, where the intermediate representation of the artificial neural network is independent of the deep learning framework.

[0046]

[0049] At 406, code of the artificial neural network is modified for a target deep learning framework based on the intermediate representation of the artificial neural network.

[0047]

[0050] In some implementations, the method 400 further includes modifying the intermediate representation of the artificial neural network in response to an editing operation on the code, and adjusting a visual representation of the artificial neural network based on the modified intermediate representation.

[0048]

[0051] In some implementations, the method 400 further includes verifying whether the shapes of the layers of the artificial neural network match each other in response to receiving a drag-and-drop operation on the graphical element.

[0049]

[0052] In some implementations, the method 400 further includes, in response to accepting a search operation related to the keyword, displaying a graphical element representing at least one candidate tier corresponding to the keyword, and in response to accepting a selection of the graphical element of the at least one candidate tier, adding the selected graphical element to the visual representation.

[0050]

[0053] In some implementations, the method 400 further includes displaying a code stub for customizing a metric of the artificial neural network, and customizing the metric of the artificial neural network in response to an edit operation on the code stub.

[0051]

[0054] In some implementations, a drag-and-drop operation is performed to enable at least one of adding one or more new graphical elements representing one or more layers of the artificial neural network into the visual representation, removing one or more graphical elements representing one or more layers of the artificial neural network from the visual representation, and modifying one or more parameters of one or more graphical elements representing one or more layers of the artificial neural network.

[0052]

[0055] In some implementations, the method 400 further includes, in response to receiving the instruction to change the target deep learning framework to the further target deep learning framework, determining code of the artificial neural network for the further deep learning framework based on the intermediate representation of the artificial neural network.

[0053]

[0056] Some example implementations of the present disclosure are described below.

[0054]

[0057] In a first aspect, a computer-implemented method is provided, the method including: presenting a visual representation of an artificial neural network, the visual representation including graphical elements representing layers of the artificial neural network; modifying an intermediate representation of the artificial neural network in response to receiving a drag-and-drop operation on the graphical elements, the intermediate representation being independent of a deep learning framework, and the drag-and-drop operation being configured to modify connections between the graphical elements; and modifying code of the artificial neural network for a target deep learning framework based on the intermediate representation of the artificial neural network.

[0055]

[0058] In some implementations, the method includes modifying an intermediate representation of the artificial neural network in response to an editing operation on the code, and adjusting a visual representation of the artificial neural network based on the modified intermediate representation.

[0056]

[0059] In some implementations, the method includes validating a dimension of data associated with a layer of the artificial neural network in response to receiving a drag-and-drop operation on the graphical element.

[0057]

[0060] In some implementations, the method includes, in response to accepting a search operation related to the keyword, presenting graphical elements representing at least one candidate tier corresponding to the keyword, and in response to accepting a selection of the graphical elements of the at least one candidate tier, adding the selected graphical element to the visual representation.

[0058]

[0061] In some implementations, the method further includes submitting a code stub for customizing a metric of the artificial neural network, and customizing the metric of the artificial neural network in response to an edit operation on the code stub.

[0059]

[0062] In some implementations, the method further includes modifying the intermediate representation of the artificial neural network in response to at least one of adding new graphical elements representing layers of the artificial neural network within the visual representation, removing graphical elements representing layers of the artificial neural network from the visual representation, and modifying parameters of the graphical elements representing layers of the artificial neural network.

[0060]

[0063] In some implementations, the method further includes, in response to receiving the instruction to change the target deep learning framework to the further target deep learning framework, determining code of the artificial neural network for the further deep learning framework based on the intermediate representation of the artificial neural network.

[0061]

[0064] In a second aspect, an apparatus is provided that includes a processing unit and a memory coupled to the processing unit and having instructions stored in the memory, the instructions which when executed by the processing unit cause the apparatus to perform operations including: presenting a visual representation of the artificial neural network, the visual representation including graphical elements representing layers of the artificial neural network; modifying an intermediate representation of the artificial neural network in response to receiving a drag-and-drop operation on the graphical elements, the intermediate representation being independent of the deep learning framework and the drag-and-drop operation being configured to modify connections between the graphical elements; and modifying code of the artificial neural network for a target deep learning framework based on the intermediate representation of the artificial neural network.

[0062]

[0065] In some implementations, the operations further include modifying the intermediate representation of the artificial neural network in response to editing operations on the code, and adjusting a visual representation of the artificial neural network based on the modified intermediate representation.

[0063]

[0066] In some implementations, the operations further include validating a dimension of the data associated with a layer of the artificial neural network in response to receiving a drag-and-drop operation on the graphical element.

[0064]

[0067] In some implementations, the operations further include, in response to accepting a search operation related to the keyword, presenting graphical elements representing at least one candidate tier corresponding to the keyword, and, in response to accepting a selection of the graphical elements of the at least one candidate tier, adding the selected graphical element to the visual representation.

[0065]

[0068] In some implementations, the operations further include submitting a code stub for customizing a metric of the artificial neural network, and customizing the metric of the artificial neural network in response to an edit operation on the code stub.

[0066]

[0069] In some implementations, the operations further include modifying the intermediate representation of the artificial neural network in response to at least one of adding new graphical elements representing layers of the artificial neural network within the visual representation, removing graphical elements representing layers of the artificial neural network from the visual representation, and modifying parameters of the graphical elements representing layers of the artificial neural network.

[0067]

[0070] In some implementations, the operations further include, in response to receiving the instruction to change the target deep learning framework to the further target deep learning framework, determining code of the artificial neural network for the further deep learning framework based on the intermediate representation of the artificial neural network.

[0068]

[0071] In a third aspect, the present disclosure provides a computer program product tangibly stored in a non-transitory computer storage medium and including computer-executable instructions that, when executed by an apparatus, cause the apparatus to perform the method of the first aspect.

[0069]

[0072] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer-executable instructions stored thereon that, when executed by an apparatus, cause the apparatus to perform the method of the first aspect.

[0070]

[0073] The functions described herein may be performed at least in part by one or more hardware logic components. For example and without limitation, exemplary types of hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on a Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

[0071]

[0074] The program codes for carrying out the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, a special purpose computer or other programmable data processing device, so that when executed by the processor or controller, the program codes cause the implementation of the functions / operations specified in the flowcharts and / or block diagrams. The program codes can be executed completely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.

[0072]

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

[0073]

[0076] Furthermore, although operations are shown in a particular order, it should be understood that the operations need to be performed in the particular order or sequential order shown, or that all of the operations shown need to be performed, to achieve the expected results. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although details of some specific implementations are included in the above description, they should not be construed as limitations on the subject matter described herein. Certain features that are described in the context of separate implementations may be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation may be implemented in multiple implementations separately or in any suitable subcombination.

[0074]

[0077] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. 1. A computer-implemented method comprising: presenting a visual representation of the artificial neural network, said visual representation including graphical elements representing layers of the artificial neural network; in response to receiving a drag-and-drop operation on the graphical elements, converting the visual representation into an artificial neural network intermediate representation and modifying the intermediate representation to indicate connections between the graphical elements that are modified by the drag-and-drop operation; modifying code of the artificial neural network for a target deep learning framework based on the modified intermediate representation of the artificial neural network; A computer-implemented method comprising:

2. modifying the intermediate representation of the artificial neural network in response to editing operations on the code; adjusting the visual representation of the artificial neural network based on the modified intermediate representation; and The method of claim 1 further comprising:

3. 2. The method of claim 1, further comprising: in response to accepting the drag-and-drop operation on the graphical element, validating a dimensionality of data associated with the layer of the artificial neural network.

4. in response to receiving a search operation related to a keyword, presenting a graphical element representative of at least one candidate demographic corresponding to the keyword; in response to receiving a selection of a graphical element of the at least one candidate layer, adding the selected graphical element to the visual representation; The method of claim 1 further comprising:

5. providing code stubs for customizing metrics of said artificial neural network; customizing the metrics of the artificial neural network in response to editing operations on the code stub; The method of claim 1 further comprising:

6. adding new graphical elements within the visual representation representing layers of the artificial neural network; removing graphical elements representing layers of the artificial neural network from the visual representation; modifying parameters of graphical elements representing layers of said artificial neural network; 2. The method of claim 1, further comprising modifying the intermediate representation of the artificial neural network in response to at least one of:

7. 2. The method of claim 1 , further comprising, in response to receiving an instruction to change the target deep learning framework to a further target deep learning framework, determining code of the artificial neural network for the further deep learning framework based on the intermediate representation of the artificial neural network.

8. An apparatus comprising: A processing unit; a memory coupled to the processing unit and having instructions stored in the memory, the instructions, when executed by the processing unit, causing the apparatus to: presenting a visual representation of the artificial neural network, said visual representation including graphical elements representing layers of the artificial neural network; in response to receiving a drag-and-drop operation on the graphical elements, converting the visual representation into an artificial neural network intermediate representation and modifying the intermediate representation to indicate connections between the graphical elements that are modified by the drag-and-drop operation; modifying code of the artificial neural network for a target deep learning framework based on the modified intermediate representation of the artificial neural network; A memory and An apparatus comprising:

9. The operation includes: modifying the intermediate representation of the artificial neural network in response to editing operations on the code; adjusting the visual representation of the artificial neural network based on the modified intermediate representation; and The apparatus of claim 8 further comprising:

10. 10. The apparatus of claim 8, wherein the operations further comprise: in response to accepting the drag-and-drop operation on the graphical element, validating a dimensionality of data associated with the layer of the artificial neural network.

11. The operation includes: In response to receiving a search operation related to a keyword, presenting a graphical element representative of at least one candidate demographic corresponding to the keyword; in response to receiving a selection of a graphical element of the at least one candidate layer, adding the selected graphical element to the visual representation; The apparatus of claim 8 further comprising:

12. The operation includes: providing code stubs for customizing metrics of said artificial neural network; customizing the metrics of the artificial neural network in response to editing operations on the code stub; The apparatus of claim 8 further comprising:

13. The operation includes: adding new graphical elements within the visual representation representing layers of the artificial neural network; removing graphical elements representing layers of the artificial neural network from the visual representation; modifying parameters of graphical elements representing layers of said artificial neural network; 10. The apparatus of claim 8, further comprising: modifying the intermediate representation of the artificial neural network in response to at least one of:

14. 10. The apparatus of claim 8, wherein the operations further comprise, in response to receiving an instruction to change the target deep learning framework to a further target deep learning framework, determining code for the artificial neural network for the further deep learning framework based on the intermediate representation of the artificial neural network.

15. A computer program stored in a computer storage medium and including computer executable instructions, the computer executable instructions, when executed by an apparatus, causing the apparatus to: presenting a visual representation of the artificial neural network, said visual representation including graphical elements representing layers of the artificial neural network; in response to receiving a drag-and-drop operation on the graphical elements, converting the visual representation into an artificial neural network intermediate representation and modifying the intermediate representation to indicate connections between the graphical elements that are modified by the drag-and-drop operation; modifying code of the artificial neural network for a target deep learning framework based on the modified intermediate representation of the artificial neural network; A computer program product for causing a computer to perform operations including:

Citation Information

Patent Citations

  • Multi-Modal Construction of Deep Learning Networks

    US20180307978A1

  • Information processing method and information processing device

    WO2017138220A1