Facing trouble in converting tensorflow model to tflite model throught command line on windows.
IMAGE_SIZE=224
tflite_convert \
--graph_def_file=tf_files/retrained_graph.pb \
--output_file=tf_files/optimized_graph.lite \
--input_format=TENSORFLOW_GRAPHDEF \
--output_format=TFLITE \
--input_shape=1,${IMAGE_SIZE},${IMAGE_SIZE},3 \
--input_array=input \
--output_array=final_result \
--inference_type=FLOAT \
--input_data_type=FLOAT
it always gives the error
ModuleNotFoundError: No module named 'tensorflow.contrib.lite.python.tflite_convert'
trouble is doing with tflite_convert on windows.