Patent ID: 11886832
Assignee: SIGMASTAR TECHNOLOGY LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. An operation device, embodied in an electronic apparatus, comprising a quantizer circuit, a buffer circuit, a control circuit, a convolution core circuit and a multiply-add circuit; wherein,
the quantizer circuit receives first feature data and performs asymmetric uniform quantization on the first feature data to obtain and store in the buffer circuit second feature data, and receives a first weighting coefficient and performs symmetric uniform quantization on the first weighting coefficient to obtain and store in the buffer circuit a second weighting coefficient;
the convolution core circuit performs a convolution operation on the second feature data and the second weighting coefficient according to an instruction of the control circuit to obtain an initial operation result;
the multiply-add circuit performs a multiply-add operation on the initial operation result, an actual quantization scale factor and an actual bias value to obtain a final operation result; and
a trimming circuit, receiving the initial operation result having a first bit width, and trimming the initial operation result having the first width into an initial operation result having a second bit width;
wherein, the multiply-add circuit performs the multiply-add operation on the initial operation result having the second bit width, the actual quantization scale factor and the actual bias value to obtain the final operation result;
wherein, the first bit width is larger than the second bit width,
wherein the trimming circuit further receives the actual bias value having the first bit width, and trims the actual bias value having the first bit width into the actual bias value having the second bit width; the multiply-add circuit performs the multiply-add operation on the initial operation result having the second bit width, the actual quantization scale factor and the actual bias value having the second bit width to obtain the final operation result.