hottub.patents
US 12,373,678 B2#2224622 Most CitedActiveUnited States (USPTO)Utility

Method and device for generating operation data and related product

1Forward Citations (#2224622 Global)
1.0/yrCitation Velocity (#2224622 Global)
0.17Citation PageRank (#2224622 Global)
9Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

The present disclosure relates to a method and a device for generation operation data and a related product, the product comprising a controller unit, and the controller unit comprising: an instruction caching unit, an instruction processing unit and a queue-storing unit. The instruction caching unit is used to store computing instructions associated with artificial neural network operations. The instruction processing unit is used to resolve the computing instructions to obtain a plurality of operation instructions. The queue-storing unit is used to store an instruction queue, which comprises: a plurality of operation instructions or computing instructions to be executed according to the front-to-rear sequence of the queue. Through the above method, the present disclosure may improve the operation efficiency of the related product when carrying out neural network model operations.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A method for generating operation data, comprising: receiving a user instruction; triggering a deep learning programming library interface to create or call operation data according to the user instruction, wherein the operation data includes at least one of tensor data that is an abstract representation of multi-dimensional data and operation instruction that represents deep learning processing layers; reading, by a deep learning programming library architecture, the operation instruction sent by the deep learning programming library interface; determining, by the deep learning programming library architecture, an instruction type of the operation instruction; and executing a compilation operation corresponding to the instruction type according to a result of the determination to obtain a binary code of a deep learning algorithm, wherein the executing includes: when the instruction type is a static operation instruction, searching for a corresponding binary code in the static operatio

  2. Claim 2Depends on #1

    The method of claim 1, wherein, the triggering the deep learning programming library interface to create or call the operation data according to the user instruction includes: triggering the deep learning programming library interface to create or call the dynamic operation instruction according to the user instruction, and/or triggering a deep learning programming library interface to create or call the static operation instruction according to the user instruction.

  3. Claim 3Depends on #2

    The method of claim 2, wherein, the triggering the deep learning programming library interface to create or call the dynamic operation instruction according to the user instruction includes: triggering the deep learning programming library interface to create or call a specialized operation instruction according to the user instruction, wherein the specialized operating instruction is obtained by converting the operation instruction to which input parameters are bound, and/or, triggering the deep learning programming library interface to create or call a fusion operation instruction according to the user instruction, wherein the fusion operating instruction is obtained by combining a plurality of operation instructions according to a calling sequence.

  4. Claim 4Depends on #3

    The method of claim 3, wherein, the triggering the deep learning programming library interface to create or call the specialized operation instruction according to the user instruction includes: triggering the deep learning programming library interface according to the user instruction to bind all input parameters to the operation instruction for conversion to obtain a fully specialized operation instruction, and/or, triggering the deep learning programming library interface according to the user instruction to bind N input parameters to the operation instruction for conversion to obtain a partial specialized operation instruction, wherein N is a positive integer less than a count of the input parameters of the operation instruction, and/or, triggering the deep learning programming library interface according to the user instruction to not bind input parameters to the operation instruction for direct conversion to obtain pseudo-specialized operation instruction.

  5. Claim 5Depends on #3

    The method of claim 3, wherein, the triggering the deep learning programming library interface to create the fusion operation instruction according to the user instruction includes: creating a name of the fusion operation instruction, determining fusion operation sub-instructions according to operation instructions to be fused, determining an operation connection relationship among the fusion operation sub-instructions according to the calling sequence of the operation instructions to be fused, connecting the fusion operation sub-instructions according to the operation connection relationship to obtain a connection result, setting input parameters and output parameters of the fusion operation sub-instructions according to a user instruction corresponding to the fusion operation sub-instruction, and packing the name, the connection result, the input parameters, and the output parameters to obtain the fusion operation instruction.

  6. Claim 6Depends on #2

    The method of claim 2, wherein, the triggering the deep learning programming library interface to create or call the static operation instruction according to the user instruction includes: triggering the deep learning programming library interface to create or call a customized operation instruction according to the user instruction, wherein the customized operation instruction is obtained by encapsulating the user instruction corresponding to the operation instruction according to an interface and data structure definition of the operation instruction, and/or, triggering the deep learning programming library interface to create or call a build-in operation instruction according to the user instruction, wherein the build-in operation instruction is an own operation instruction that is included in the deep learning programming library interface, and/or, triggering the deep learning programming library interface to create or call an offline operation instruction, wherein the offline ope

  7. Claim 7Depends on #6

    The method of claim 6, wherein, the binary code corresponding to the static operation instruction is stored in a static operation pool of the deep learning programming library, wherein the static operation pool includes a static operation source file, wherein the static operation source file includes a static code segment, a static data segment, a dynamic code segment, and a dynamic data segment, wherein, the static code segment is used to store the binary code corresponding to the build-in operation instruction, the dynamic code segment is used to store the binary code corresponding to the customized operation instruction, the static data segment is used to store tensor data corresponding to the build-in operation instruction, and the dynamic data segment is used to store tensor data corresponding to the customized operation instruction.

  8. Claim 8Depends on #7

    The method of claim 7, wherein, the static operation pool further includes an offline cache, wherein, the offline cache includes an offline file and an index table, wherein, the offline file is used to store a pre-compiled result of the offline operation instruction, and the index table is used to indicate a location where the pre-compiled result of the offline operation instruction is stored in the offline file.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATION This application is a US National Phase of a PCT Application No. PCT/CN2020/111094 filed on Aug. 25, 2020, which claims priority to Chinese patent application No. 201910596220.8, filed on Jul. 3, 2019, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD The present disclosure relates to the field of deep learning, and in particular relates to an operation data generation method, device, and related products. BACKGROUND In the field of artificial intelligence technology, neural network algorithms, which are very popular machine learning algorithms recently, have achieved good results in various fields such as image recognition, speech recognition, natural language processing, etc. As neural network algorithms develop, they become more complex. The model scale also increases gradually as a result of recognition improvement. SUMMARY In view of this, the present disclosure proposes an operation data generation method, device, and related products, which can improve the performance optimization effect of deep learning algorithms in the corresponding hardware platform. According to a first aspect of the present disclosure, a method for generating operation data is provided. The method includes: receiving a user instruction, and triggering a deep learning programming library interface to create or call operation data according to the user instruction, where the operation data includes at least one of tensor data and operation instruction. According to a second aspect of the present disclosure, a device for generating operation data is provided. The device includes: a user instruction receiving module configured to receive a user instruction, a triggering module configured to trigger a deep learning programming library interface to create or call operation data according to the user instruction, where the operation data includes at least one of tensor data and operation instruction. According to a third a

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

References Cited — Backward Prior Art (9)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Looks et al.,
  • “
  • Deep Learning with Dynamic Computation Graphs.
  • ”
  • 2017 (Year: 2017).
  • Roesch et al.,
  • “
  • Relay: A New IR for Machine Learning Frameworks
  • ”
  • (Year: 2018).