Patent ID: 11960421
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Basic communication processes (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 14:
15. A compression method, wherein the compression method is applied to an operation accelerator, the operation accelerator comprises a first buffer and a second buffer, and the method comprises:
obtaining a computation result by performing matrix multiplication on first input data obtained from the first buffer and weight data obtained from the second buffer;
obtaining a control instruction, wherein the control instruction is used to instruct whether to compress and decompress the computation result;
when the control instruction comprises instructions to compress the computation result, obtaining compressed data by compressing the computation result and storing the compressed data in a memory outside the operation accelerator; and
when the control instruction skips instructing to compress the computation result, storing the computation result in the memory outside the operation accelerator.