Is it possible to quantize a projected NN?
Mostrar comentarios más antiguos
I have trained a LSTM Model to filter some signals (approximately following this example: https://it.mathworks.com/help/signal/ug/denoise-eeg-signals-using-differentiable-signal-processing-layers.html). Then, since the aim is to implement the NN in an hardware, I reduced the number of learnables using the Projection method of compression. This gives me the possibility to reduce the learnables from 4.3k to 1.5k. Then, I improved the accuracy of the model fine-tuning the projected LSTM. Finally, I would like to quantize the model on 8 bits. When I use the quantize function in MATLAB I have the following error: "The class deep.internal.quantization.config.ConfigType has no Constant property or Static method named 'InputProjector'."
Is it possible to quantize a projected NN?
Fairly new in this area, be kind :)
2 comentarios
Venu
el 19 de Mayo de 2024
Hi @Silvia
The error you encountered suggests that the direct application of MATLAB's built-in quantization function to a projected NN might not be straightforward due to compatibility issues with custom or non-standard layer types introduced during the projection process. Can you share more details regarding the projection method that you implemented?
Silvia
el 21 de Mayo de 2024
Respuesta aceptada
Más respuestas (1)
Katja Mogalle
el 28 de Mayo de 2026 a las 12:31
0 votos
UPDATE
Since MATLAB R2025a, quantization is possible for lstmLayer and lstmProjectedLayer.
To get a list of the all layers supported for quantization in the latest release, please refer to this page: https://uk.mathworks.com/help/deeplearning/ug/supported-layers-for-quantization.html
It can also sometimes help to call prepareNetwork on the dlquantizer object as a first step in the quantization workflow.
Categorías
Más información sobre Pruning, Projection, and Quantization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!