During Convert TFlite model from Frozen Graph & labelmap.pbtxt , Getting Error if not isinstance(self._keras_model.call, _def_function.Function): AttributeError: 'str' object has no attribute 'call'?
Hi @selvakarna,

For the Tensorflow Saved Model format, you need to specify `converter=tf.lite.TFLiteConverter.from_saved_model(model_path)` instead of  `converter=tf.lite.TFLiteConverter.from_keras_model(r"\saved_model.pb") #model_path` . I tested with sample code. It is working fine. Please  refer to the [gist](https://colab.sandbox.google.com/gist/LakshmiKalaKadali/d736991e5efc5a10c7492478d16e4ea8/tflite_63686_frozen-graph.ipynb) and  test the code with your `.pb ` and `.pbtxt`  files. 

Thank You



 This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
### 1. System information

Windows-OS
#### Code
import tensorflow as tf
import numpy as np
model_path ="Model\Path"  # Path contain: frozen_inference_graph.pb & labelmap.pbtxt
model = tf.saved_model.load(model_path)

converter=tf.lite.TFLiteConverter.from_keras_model(r"\saved_model.pb") #model_path
converter.optimizations=[tf.lite.Optimize.DEFAULT]
converter.experimental_new_converter = True
tflite_model = converter.convert()
tflite_model_path="converted_.tflite"
with open(tflite_model_path,"wb") as f:
f.write(tflite_model)


### Error
 if not isinstance(self._keras_model.call, _def_function.Function): AttributeError: 'str' object has no attribute 'call'?

