先将tensorflow2.4cpkt转为.pb模型。再将.pb模型转为.tflite时报错File "D:\Program Files\Python\Python37\lib\site-packages\tensorflow\lite\pythontype tensor<1x1x256xf32> is incompatible with result type tensor<0x1x256xf32> at index 7
下面是我.pb转tflite的代码import tensorflow as t
先将tensorflow2.4cpkt转为.pb模型。再将.pb模型转为.tflite时报错
File "D:\Program Files\Python\Python37\lib\site-packages\tensorflow\lite\pythontensor<1x1x256xf32> is incompatible with result type tensor<0x1x256xf32> at index 7