hottub.patents
US 12,380,333 B2#3477772 Most CitedActiveUnited States (USPTO)Utility

Method of constructing network model for deep learning, device, and storage medium

0Forward Citations (#3477772 Global)
0.0/yrCitation Velocity (#3477772 Global)
0.00Citation PageRank (#3477772 Global)
17Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A method and apparatus of constructing a network model for deep learning, a device, and a storage medium, which relate to artificial intelligence, and in particular to a field of deep learning. The method of constructing the network model for deep learning includes: determining an execution mode for executing codes, based on a mode parameter; executing the codes by using a first component, which is executable in a first execution mode, through a syntax element in the codes, in response to determining that the execution mode is the first execution mode; and executing the codes by using a second component, which is executable in a second execution mode, through the syntax element, in response to determining that the execution mode is the second execution mode; wherein the first component and the second component have the same component interface, and the syntax element corresponds to the component interface.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method of constructing a network model for deep learning, comprising: determining an execution mode for executing codes used in constructing the network model, based on a mode parameter; executing a first syntax element in the codes by using a first component, which is available in a first execution mode, in response to determining that the execution mode is the first execution mode; and executing the first syntax element in the codes by using a second component, which is available in a second execution mode, in response to determining that the execution mode is the second execution mode, without converting the codes; wherein when the codes include a second syntax element for enabling the second execution mode, the mode parameter is updated to enable the second execution mode in response to executing the second syntax element, and when the codes include a third syntax element for disabling the second execution mode, the mode parameter is updated to enable the first execution mode in

  2. Claim 2Depends on #1

    The method of claim 1, wherein the component interface comprises a control flow component interface; and wherein the method further comprises: when the first syntax element corresponding to the control flow component interface is executed, in the first execution mode, using a first control flow component in the first component; and in the second execution mode, using a second control flow component in the second component.

  3. Claim 3Depends on #2

    The method of claim 2, wherein the component interface further comprises a network construction component interface; and wherein the method further comprises: when the first syntax element corresponding to the network construction component interface is executed, in the first execution mode, using a network construction component through the first control flow component; and in the second execution mode, using the network construction component through the second control flow component.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the component interface comprises a network execution component interface; and wherein the method further comprises: when the first syntax element corresponding to the network execution component interface is executed, in the first execution mode, processing input data by using a first network execution component in the first component, so as to obtain output data; and in the second execution mode, processing input data by using a second network execution component in the second component, so as to obtain output data.

  5. Claim 5Depends on #4

    The method of claim 4, further comprising: when the second network execution component in the second component is executed, determining a first computational graph for the input data based on the input data; and processing the input data based on the first computational graph, so as to obtain the output data.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the component interface comprises a network optimization component interface; and wherein the method further comprises: when the first syntax element corresponding to the network optimization component interface is executed, in the first execution mode, updating a network model parameter by using a first network optimization component in the first component; and in the second execution mode, updating a network model parameter by using a second network optimization component in the second component.

  7. Claim 7Depends on #6

    The method of claim 6, further comprising: when the second network optimization component is executed, constructing a second computational graph for forward propagation so as to determine a loss caused by the network model parameter; constructing a third computational graph for backward propagation so as to determine a gradient associated with the network model parameter; and constructing a fourth computational graph for updating the network model parameter so as to determine an updated network model parameter.

  8. Claim 8Depends on #1

    The method of claim 1, wherein the component interface comprises a learning rate adjustment component interface; and wherein the method further comprises: when the first syntax element corresponding to the learning rate adjustment component interface is executed, in the first execution mode, adjusting a learning rate by using a first learning rate adjustment component in the first component, so as to update the network model parameter; and in the second execution mode, adjust a learning rate by using a second learning rate adjustment component in the second component, so as to update the network model parameter.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is claims priority to Chinese Application No. 202011249391.2, filed on Nov. 10, 2020, which is incorporated herein by reference in its entirety. TECHNICAL FIELD The present disclosure relates to a field of data processing, in particular to a field of artificial intelligence and deep learning, and more specifically to a method of constructing a network model for deep learning, a device, and a storage medium. BACKGROUND With development of computer technology, there are already deep learning platforms available for users to simplify a development process. In a deep learning platform, a mode such as a static graph (also known as declarative programming) is generally used to deploy a final network model used for prediction in practical application. For a computing device, the static graph may be executed quickly, which is conducive to deployment. However, at present, users are more accustomed to using a mode such as a dynamic graph (also known as imperative programming) to develop a network model for convenience of training and debugging. SUMMARY The present disclosure provides a method of constructing a network model for deep learning, a device, and a storage medium. According to a first aspect of the present disclosure, there is provided a method of constructing a network model for deep learning, including: determining an execution mode for executing codes, based on a mode parameter; executing the codes by using a first component, which is executable in a first execution mode, through a syntax element in the codes, in response to determining that the execution mode is the first execution mode; executing the codes by using a second component, which is executable in a second execution mode, through the syntax element, in response to determining that the execution mode is the second execution mode; The first component and the second component have the same component interface, and the syntax element corresponds to

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (17)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Kingma, Diederik P., and Jimmy Ba.
  • “
  • Adam: A method for stochastic optimization.
  • ”
  • arXiv preprint arXiv:1412.6980 (2014). (Year: 2017).
  • Singh, Pramod, Avinash Manure, Pramod Singh, and Avinash Manure.
  • “
  • Introduction to tensorflow 2.0.
  • ”
  • Learn TensorFlow 2.0: Implement Machine Learning and Deep Learning Models with Python (2020): 1-24. (Year: 2020).