CPC G06N 3/082 (2013.01) [G06N 3/10 (2013.01)] | 14 Claims |
1. A method for reducing a size of a neural network model, comprising:
compressing data of the neural network model;
identifying structure information of a vector register, wherein the structure information includes a number of registers included in the vector register;
comparing a number of elements in the compressed data of the neural network model with a first condition, wherein the first condition is determined based on the number of registers in the vector register;
in response to the number of elements satisfying the first condition, associating the compressed data of the neural network model with the vector register to enable loading the compressed data of the neural network model to the vector register;
in response to the number of elements satisfying the first condition, sending an indication to end compression of the data;
comparing the number of elements in the compressed data of the neural network model with a second condition, wherein the second condition is determined based on the number of registers in the vector register, and is different from the first condition; and
adjusting a structure of the vector register in response to the number of elements satisfying the second condition,
wherein satisfying the first condition comprises being equal to or smaller than the number of registers in the vector register, and wherein satisfying the second condition comprises being equal to or smaller than one half of the number of registers in the vector register.
|