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

Claim 8:
9. The method according to claim 8, wherein the obtaining the compression result of the to-be-compressed neural network model according to the second neural network model comprises:
quantifying, according to the second bit width, parameters which are not set to zero in the second neural network model to obtain a quantified neural network model;
training the quantified neural network model using the training data to obtain a loss function value and model precision of the quantified neural network model; and
in response to determining that the model precision does not meet a second preset condition, and after adjusting parameters of the second neural network model using the loss function value, proceeding to the obtaining the quantified neural network model until the model precision meets the second preset condition, and taking the quantified neural network model as the compression result of the to-be-compressed neural network model.