Method, electronic device and computer program product for processing machine learning model

US2021034582A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2021034582-A1
Application numberUS-201916678758-A
CountryUS
Kind codeA1
Filing dateNov 8, 2019
Priority dateAug 2, 2019
Publication dateFeb 4, 2021
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method comprises obtaining an intermediate representation of the machine learning model written in a source language. The intermediate representation is independent of the source language and a target language and comprises a structured text. The method also comprises generating a computation graph based on the intermediate representation. Nodes in the computation graph represent functions related to the machine learning model and a directed edge in the computation graph represents a dependency between functions. The method further comprises partitioning the computation graph into sequential parts in sequence such that the parts are executed sequentially, and functions corresponding to nodes in each part are executed in parallel.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method for processing a machine learning model, comprising: obtaining an intermediate representation of the machine learning model written in a source language, the intermediate representation being independent of the source language and a target language and comprising a structured text; generating a computation graph based on the intermediate representation, nodes in the computation graph representing functions related to the machine learning model, a directed edge in the computation graph representing a dependency between the functions; and partitioning the computation graph into sequential parts, such that the parts are executed sequentially and functions corresponding to nodes in each part are executed in parallel. 2 . The method of claim 1 , wherein partitioning the computation graph into parts comprises determining in-degrees of at least a part of the plurality of nodes of the computation graph, an in-degree of a node representing a number of directed edges directed to the node. 3 . The method of claim 2 , wherein partitioning the computation graph into parts comprises partitioning the computation graph into the parts based on the in-degrees. 4 . The method of claim 3 , wherein partitioning the computation graph into the parts based on the in-degrees comprises executing iteratively acts of selecting a first part of the computation graph, such that each node in the first part has a predetermined threshold in-degree. 5 . The method of claim 4 , wherein partitioning the computation graph into the parts based on the in-degrees comprises executing iteratively acts of removing, from the computation graph, the first part and a directed edge associated with nodes in the first part, to update the computation graph. 6 . The method of claim 4 , wherein the threshold in-degree is equal to zero. 7 . An electronic device, comprising: a processor; and a memory storing computer program instructions, the processor running the computer program instructions in the memory to control the electronic device to perform acts comprising: obtaining an intermediate representation of the machine learning model written in a source language, the intermediate representation being independent of the source language and a target language and comprising a structured text; generating a computation graph based on the intermediate representation, nodes in the computation graph representing functions related to the machine learning model, a directed edge in the computation graph representing a dependency between the functions; and partitioning the computation graph into sequential parts in sequence, such that the plurality of parts are executed sequentially, and functions corresponding to nodes in each part are executed in parallel. 8 . The electronic device of claim 7 , wherein partitioning the computation graph into parts comprises determining in-degrees of at least a part of nodes in the plurality of nodes of the computation graph, an in-degree of a node representing a number of directed edges directed to the node. 9 . The electronic device of claim 8 , wherein partitioning the computation graph into parts comprises partitioning the computation graph into the parts based on the in-degrees. 10 . The electronic device of claim 9 , wherein partitioning the computation graph into the plurality of parts based on the in-degrees comprises executing iteratively acts of selecting a first part of the computation graph, such that each node in the first part has a predetermined threshold in-degree. 11 . The electronic device of claim 10 , wherein partitioning the computation graph into the plurality of parts based on the in-degrees comprises executing iteratively acts of removing, from the computation graph, the first part and a directed edge associated with nodes in the first part, to update the computation graph. 12 . The electronic device of claim 10 , wherein the threshold in-degree is equal to zero. 13 . A computer program product, being tangibly stored on a non-volatile computer-readable medium and comprising machine executable instructions, the machine executable instructions, when executed, causing a machine to perform acts comprising: obtaining an intermediate representation of the machine learning model written in a source language, the intermediate representation being independent of the source language and s target language and including a structured text; generating a computation graph based on the intermediate representation, a node in the computation graph representing functions related to the machine learning model, a directed edge in the computation graph representing a dependency between the functions; and partitioning the computation graph into sequential parts, such that parts are executed sequentially, and functions corresponding to nodes in each part are executed in parallel. 14 . The computer program product of claim 13 , wherein partitioning the computation graph into parts comprises determining in-degrees of at least a part of nodes in the plurality of nodes of the computation graph, an in-degree of a node representing a number of a directed edge directed to the node. 15 . The computer program product of claim 14 , wherein partitioning the computation graph into parts comprises partitioning the computation graph into parts based on the in-degrees based on the in-degrees. 16 . The computer program product of claim 15 , wherein partitioning the computation graph into parts based on the in-degrees comprises executing iteratively acts of selecting a first part of the computation graph, such that each node in the first part has a predetermined threshold in-degree. 17 . The computer program product of claim 16 , wherein partitioning the computation graph into parts based on the in-degrees comprises executing iteratively acts of removing, from the computation graph, the first part and directed edges associated with nodes in the first part and the first part, to update the computation graph. 18 . The computer program product of claim 16 , wherein the threshold in-degree is equal to zero. 19 . The computer program product of claim 13 , wherein the intermediate representation of the machine learning model is described in a JavaScript Object Notation (JSON) format. 20 . The computer program product of claim 13 , wherein the intermediate representation of the machine learning model is described in an Extensible Markup Language (XML) format.

Assignees

Inventors

Classifications

  • Combinations of networks · CPC title

  • Compilation · CPC title

  • Learning methods · CPC title

  • G06F8/30Primary

    Creation or generation of source code · CPC title

  • G06N20/00Primary

    Machine learning · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2021034582A1 cover?
A method comprises obtaining an intermediate representation of the machine learning model written in a source language. The intermediate representation is independent of the source language and a target language and comprises a structured text. The method also comprises generating a computation graph based on the intermediate representation. Nodes in the computation graph represent functions re…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F8/30. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Feb 04 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).