Open carryzhang123 opened 3 years ago
Hi could you provide an example?
TF1.15 may have had some issues with bias overflow that have been fixed by adjusting the weight scales.
Two tflites was generating from one pb file.One is the tflite of tf1.15,other is the tflite of 2.4.Two things are different. 1、The first layer is conv2d in pb model,but it is depthwiseconv2d of the 1.15 tflite,it is conv2d of the 2.4 tflite. 2、The quantized weight of 1.15 tflite different from the quantized weight of 2.4 tflite. But the lstm weight is same.
Pictures from Netron.Thank you very much.
HI @teijeong could you take a look?
Not sure about different first layer in 1.15 vs 2.4. For weight difference - is the left result from TF 2.4? Recent TFLite supports per-channel quantization for conv-like ops, so that the filter would have different scale for each output dimension.
1. System information
tensorflow1.15 、tensorflow2.4
2. Code