Method for compiling neutral network model electronic device and storage medium
AssigneeBeijing Horizon Information Technology Co., Ltd.
InventorLiang Zou
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Horizon Information Technology Co., Ltd.
InventorLiang Zou
Estimating the term…
A neural network model compilation method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring a neural network model to be compiled; on the basis of said neural network model, determining an initial computation graph corresponding to said neural network model, wherein the initial computation graph comprises at least one first computation sub-graph; determining from each first computation sub-graph a second computation sub-graph comprising a preset operator node, and dividing the second computation sub-graph into a first number of target computation sub-graphs according to an input tensor of the second computation sub-graph; establishing a dependency relationship between the first number of target computation sub-graphs according to a preset dependency rule, so as to obtain a first dependency graph corresponding to the second computation sub-graph; and on the basis of the first dependency graph corresponding to each second computation sub-graph, generating a target instruction sequence corresponding to said neural network model. The method can be conducive to improving the validity of the degree of parallelism of an instruction sequence, thereby improving the instruction scheduling efficiency.
A method for compiling a neural network model, comprising:
(canceled)
) A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, causes the processor to implement a method for compiling a neural network model, the method comprising:
An electronic device, comprising:
Dependencies are inferred from the claim text.