Method and device for determining optimal calculation template
The invention discloses a method and device for determining an optimal calculation template, and belongs to the technical field of neural networks. The method comprises the steps of determining various calculation templates corresponding to a target calculation layer based on a tensor equation of th...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and device for determining an optimal calculation template, and belongs to the technical field of neural networks. The method comprises the steps of determining various calculation templates corresponding to a target calculation layer based on a tensor equation of the target calculation layer, determining target calculation templates meeting preset hardware limiting conditions of the equipment in the various calculation templates, and performing compiling and simulation operation on the tensor equation based on each target calculation template, and determining the operation time of each target calculation template, and determining the target calculation template with the minimum operation time as the optimal calculation template. The hardware limiting condition of the device is preset, and the target calculation template meeting the preset hardware limiting condition of the device is determined in the various calculation templates corresponding to the target calculation layer, |
---|