Hi,
While converting the tflite model to relay module using below line of code :
mod, params = relay.frontend.from_tflite(tflite_model,
shape_dict={input_tensor: input_shape},
dtype_dict={input_tensor: input_dtype})
i am getting this error: assert op.BuiltinOptionsType() == BuiltinOptions.ReshapeOptions AssertionError
The tflite model (vgg facenet) is an quantized uint8 model which i converted from frozzen pb model to tflite model using tf lite command in tensorflow 2.3:
tflite_convert --output_file my_facenet_tf2_3_uint8.tflite --graph_def_file freeze_facenet.pb --enable_v1_converter --input_arrays “input” --input_shapes “1,160,160,3” --output_arrays “embeddings” --output_format TFLITE --mean_values 128 --std_dev_values 128 --default_ranges_min 0 --default_ranges_max 6 --inference_type QUANTIZED_UINT8 --inference_input_type QUANTIZED_UINT8
But when i converted my pb model to tflite model in tensorflow 2.2 (using same command) and then tried to convert the model to relay module everything works fine. Relay module is created successfully.
Please comment on this issue
Thanks