1. When converting LSTM to tflite, the following WARNING message appears .
WARNING:absl:Found untraced functions such as lstm_cell_16_layer_call_and_return_conditional_losses, lstm_cell_16_layer_call_fn, lstm_cell_17_layer_call_and_return_conditional_losses, lstm_cell_17_layer_call_fn, lstm_cell_18_layer_call_and_return_conditional_losses while saving (showing 5 of 40). These functions will not be directly callable after loading.
2. first, ignore the message and measure test accuracy on computer with the tflite model
it shows 14% accuracy…! Before the conversion, it was 94%.
Hi @philip, If possible could you please provide the model that was converted to tflite and also sample data from the dataset you are using. so that i can reproduce and understand the issue better. Thank You.
Hi, @Kiran_Sai_Ramineni , I have some good news!
For this problem, I visualized the model structure, I’ve found the cause.
I noticed that the order of the inputs was reversed during the conversion, and once I fixed that, it worked fine.
but, Compared to other models (multi CNN etc…), LSTM is exceptionally slow, do you know why?
Hi @philip, LSTM networks tend to be computationally more expensive compared to CNNs. LSTMs will have more parameters compared to simpler models like feedforward neural networks due to this they require more computations during both training and inference. Thank You.