Patent ID: 11861498
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 13:
14. A non-transitory computer readable storage medium with computer instructions stored thereon, wherein the computer instructions are used for causing a computer to perform a method for compressing a neural network model comprising:
acquiring a to-be-compressed neural network model;
determining a first bit width, a second bit width and a target thinning rate corresponding to the to-be-compressed neural network model, wherein the first bit width and the second bit width are determined based on a processor for running the to-be-compressed neural network model;
obtaining a target value according to the first bit width, the second bit width and the target thinning rate, which comprises: calculating a product between the second bit width and the target thinning rate; and taking a division result between the first bit width and the product as the target value; and
compressing the to-be-compressed neural network model using the target value, the first bit width and the second bit width to obtain a compression result of the to-be-compressed neural network model.