Data processing method and device, electronic equipment and storage medium

The invention provides a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: acquiring an initial quantization parameter and hardware attribute information of equipment under an...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: NI YAYU, CAO RUI
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 invention provides a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: acquiring an initial quantization parameter and hardware attribute information of equipment under an unconstrained condition; the discrete constraint in the forward reasoning stage of the quantitative model is utilized, the discrete constraint is a fixed-point integer type constraint only related to the right shift number, and the optimal right shift number under the discrete constraint is obtained through hardware attribute information of equipment; and according to the optimal right shift number, updating the initial quantization parameter to obtain a target quantization parameter and a quantization model corresponding to the target quantization parameter. According to the method and the device, under the condition that the loss precision is very small, the operation power consumption on hardware is greatly red