Method and device for determining operation mode of AI chip

The embodiment of the invention provides a method and device for determining an operation mode of an AI chip. The method comprises the following steps: obtaining a target neural network model; obtaining different combinations of operation modes supported by the AI chip, wherein each combination comp...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YE TINGQUN, ZHOU ZHIQIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a method and device for determining an operation mode of an AI chip. The method comprises the following steps: obtaining a target neural network model; obtaining different combinations of operation modes supported by the AI chip, wherein each combination comprises the operation mode of each network layer in the target neural network model; enabling the AI chip to process the first preset test data for multiple times by using the target neural network model based on different combinations; obtaining a first processing duration used by the AI chip for completing the processing of the first preset test data each time; and selecting the operation mode included in the combination with the shortest first processing duration, and determining the operation mode as the operation mode of the AI chip when the data is processed based on the target neural network model, so that the data processing efficiency based on the neural network model can be improved based on the processing.