ELECTRONIC DEVICE AND NEURAL NETWORK QUANTIZATION METHOD

Embodiments of the present application provide an electronic device and a neural network quantization method. The electronic device comprises a processor and a logic circuit. The processor is used to determine a first zero offset and a first quantization coefficient according to floating point data,...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG, Yihao, LIU, Genshu, XIAO, Yannan, ZUO, Wenming
Format: Patent
Sprache:chi ; eng ; fre
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:Embodiments of the present application provide an electronic device and a neural network quantization method. The electronic device comprises a processor and a logic circuit. The processor is used to determine a first zero offset and a first quantization coefficient according to floating point data, and a maximum value and minimum value of preset fixed point data, multiply the first quantization coefficient to obtain a second quantization coefficient, and multiply the first zero offset to obtain a second zero offset. The logic circuit is used to quantize data to be quantized by means of floating point multiplication and fixed point addition according to the second quantization coefficient and the second zero point offset, to obtain a first quantization result; and shift the first quantization result according to a preset fixed-point quantization coefficient to obtain a final quantization result of the data to be quantized. In the electronic device and the neural network quantization method of the embodiments