Efficient quantization for neural network deployment and execution
AssigneeCypress Semiconductor Corporation
InventorsAshutosh Pandey, Kaiping Li, Vikram Kumar Ramanna
Life of this patent
Estimating the term…
Abstract
Implementations disclosed describe methods and systems to perform the methods of deploying and executing machine learning models on target-specific computational platforms. Optimization techniques include but are not limited to alignment of kernel operations with hardware instructions of a target processing device, reduction of kernel dimensions near boundaries of data, efficient reuse of a small number of memory components during neural network operations, run-time quantization of data and neural network parameters, and other methods.
Claims20
A method to deploy a trained machine learning model (MLM) on an edge computing device, the method comprising:
- obtaining a first input data into the MLM;
- identifying a first range of values associated with the first input data;
- identifying a second range of values associated with an integer number format;
- obtaining a first rescaled input data by rescaling the first input data based on a mapping of the first range of values to the second range of values;
- processing the first rescaled input data using a first neuron layer of the MLM to obtain a first intermediate data;
- and
- obtaining, using the first intermediate data, a first inference output of the MLM, the first inference output comprising a first classification of the first input data.
A method comprising:
- obtaining a plurality of input data into an MLM, the MLM comprising parameters stored in a first integer number format;
- and
- processing the plurality of the input data to obtain a plurality of respective classifications of the input data, wherein processing of each of the plurality of the input data comprises:
- identifying a range of values associated with a corresponding input data;
- obtaining a rescaled input data by rescaling the corresponding input data based on a mapping of the identified range of values to a second integer number format;
- and
- obtaining, using the rescaled input data an inference output comprising a classification of the corresponding input data.
A system comprising:
- a memory subsystem;
- and
- a processing device communicatively coupled to the memory subsystem, the processing device to:
- obtain a first input data into the MLM;
- identify a first range of values associated with the first input data;
- identify a second range of values associated with an integer number format;
- obtain a first rescaled input data by rescaling the first input data based on a mapping of the first range of values to the second range of values;
- process the first rescaled input data using a first neuron layer of the MLM to obtain a first intermediate data;
- and
- obtain, using the first intermediate data, a first inference output of the MLM, the first inference output comprising a first classification of the first input data.
Dependencies are inferred from the claim text.