Hi All,
when quantizing a model, i get the min,max and delta encoding.
allthough input data type is float, it is actualy act as char. beacuse (abs(min) + abs (max)) / delta = 255.
Are the calculations inside the quantized model use the floats values or does it use them with the delta?
and if it convert them to char internaly, is there a way to pass the input as char in the first place? and to aviod the convertion to float in my pre-process?
Dear customer,
The SNPE will take the float input as the quantization and then feeds to engine for next step. SNPE will use the encoding values from tb if fakequant nodes has provided in quantization flow.
BR.
Wei
Thank you for your answer.
just so i fully understand - is it possible to give the quantized .dlc input that is not float? uint8 for example?
Dear customer,
If you run on float dlc, the SNPE will execute with online compilier type as the performance is not good.
We're reommending to take the quantize dlc to implement on the final device as run with offline compiler. This way will speed up the model performance.
SNPE engin will convert data to quanzation bitwidth no matter you input with float or fixed points data.
BR.
Wei