问题
Using tflite and getting properties of interpreter like :
print(interpreter.get_input_details())
[{'name': 'input_1_1', 'index': 47, 'shape': array([ 1, 128, 128, 3], dtype=int32), 'dtype': <class 'numpy.uint8'>, 'quantization': (0.003921568859368563, 0)}]
What does 'quantization': (0.003921568859368563, 0)
mean?
回答1:
It means quantization parameters values: scale and zero_point of input tensor.
This is necessary to convert a quantized uint8 number q to floating point number f using formula:
f = (q - zero_point) * scale
来源:https://stackoverflow.com/questions/54830126/what-does-quantization-mean-in-interpreter-get-input-details